Format date in contact form Wordpress [closed] - javascript

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I want to know, how to change the date format in the contact form, if I am not wrong, it's the contact form 7.
For example: I have in one of the fields, Date of birth, but the format is shown like jj/mm/aaaa
I need to change it, in order to get this format in the field of the form mm/jj/aaaa. I want to clarify that it is not for the general settings, but for the contact form.
I've been checking around, but I haven't got any answer to my question, so probably you may help me.
Thanks to everyone and happy coding!

Regarding the documentation you can change the format with:
Administration > Settings > General > Date Format
There you should see something like this where you can change the format:

Related

How to realize maximally user friendly date input? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I have wrote the following code for date input:
$( "#datepicker" ).datepicker();
full DEMO
But this input is not enough friendly for user. user can type to input something wrong and confusion with date format can happen. Is there way to make date input dramatically friendly for user?
P.S.
I know I can use masks. Can you advise another options?
Just add readonly to the input to avoid user entering text to the input.
DEMO

Change javascript output locale [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
Im in trouble with this javascript. Im not good with this language, so i thought, maby you can help me with it. This script changes value of the input which id end_date. But when it chages it prints in eng locale, i need to change it to lt. Like this: setlocale(LC_ALL, '$AppUI->user_lang.UTF-8'); Help pls.
f.task_end_date.value = e.getUTCFullYear()+tz2+(e.getMonth()+1)+tz1+e.getDate();
var url = '?m=public&a=date_format&dialog=1&field='+f.name+'.end_date&date=' + f.task_end_date.value;
You can use Moment.js to parse/format the date to the format that you need: http://momentjs.com/

Create a professional looking calendar for a website form [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I am creating a form which requires the user to fill in a date for a booking. I want to have a calendar as a part of the form where the default date is the date for that particular date.
Are there any premade calendars (I don't want to reinvent the wheel)?
I am developing using html, css, javascript, jsp and bootstrap. I don't mind adding another framework in order to make this work. Thank you!
Bootstrappers have many examples of date-time pickers:
http://eonasdan.github.io/bootstrap-datetimepicker/ This has many calender examples. You can easily incorporate this in to your form.
This question should be more technical, but i think this is what you are looking for.
https://jqueryui.com/datepicker/

Convert Time to UTC [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I have a timepicker that allows the user to select a time. If they select 7:00pm how can I convert that to UTC 24H time?
If there is already an answer to this question and someone could direct me to it that would be great.
Since you tagged JavaScript and jQuery, I could guess you are using https://github.com/jonthornton/jquery-timepicker#timepicker-plugin-for-jquery? If so, try calling getTime method:
$('#my-timeicker-id').getTime(); // returns Javascript Date object
Check for your timepicker's API (e.g. https://github.com/jonthornton/jquery-timepicker#methods) for more.
--
In case you are using your own timepicker, you will have to implement it yourself. For learning purposes great, go for it! Otherwise don't reinvent the wheel and pick an existing solution.

jQuery/Javascript border around empty form fields [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Recently I decided to learn Javascript and have been trying to create a script that will put a border around empty elements before the form is submitted. Essentially I want the form to be live validation and notify the user before they click submit. Any help would be greatly appreciated.
There are very many plugins if you want to use jQuery as your title suggests:
http://www.jquerybyexample.net/2014/05/15-useful-jquery-validation-plugins.html
Just pick whatever you want :-)
Or if you want to use plain JS, just search "javascript form validation" on google, you'll find thousands of entries, e.g.
http://www.learn-javascript-tutorial.com/javascript-form-validation.cfm and http://www.tizag.com/javascriptT/javascriptform.php

Categories