Page 1 of 1

Date popup needed, that will return YYYY-MM-DD format

Posted: Thu Apr 23, 2015 7:47 am
by simonmlewis
I am looking for a simple popup script that shows a calendar, to select the date, and that date appears in the Input field, int he format: YYYY-MM-DD.

I did find a good one, but you had to tell it first the format within the form, and without changing the format to the desired one it would not work; not even if it was set to that format by default.

Re: Date popup needed, that will return YYYY-MM-DD format

Posted: Thu Apr 23, 2015 7:58 am
by Celauran

Re: Date popup needed, that will return YYYY-MM-DD format

Posted: Thu Apr 23, 2015 8:01 am
by simonmlewis
Funnily enough that is the very one I Was trying, but you have to add the dropdown option to enable the formatting of the date, and then you have to select the format to change the date.

I Want the user to be able to just select the date and it automatically uses said format.

Re: Date popup needed, that will return YYYY-MM-DD format

Posted: Thu Apr 23, 2015 12:13 pm
by Celauran
simonmlewis wrote:but you have to add the dropdown option to enable the formatting of the date
No you don't. http://api.jqueryui.com/datepicker/#option-dateFormat