Forums

format: 'd M Y' not working

deltafidesign 28 Apr, 2013
I've setted DateTime Picker config this way: format: 'd M Y' not working.

When I select the date in the form field it correctly shows me the MonkeyPhysics box, then I select the date, but in the date field it put this: d M Y , instead of the date formatted like 28-04-2013. It shows exaclty "d M Y" word. No numbers.

PHP 5.3.22
J! 3.1
Chronoforms V4 RC3.5.3

What's wrong?
GreyHead 28 Apr, 2013
Hi deltafidesign,

Don't use the MonkeyPhysics DatePicker if you are using Joomla! 3.1, it doesn't work correctly with more recent versions of MooTools.

Also please upgrade your ChronoForms to CFV3 Stable for use with Joomla! 3.1

Bob
deltafidesign 28 Apr, 2013
Now I've setted DatePicker Type to "Mootools DatePicker" and still DateTime Picker config: format: 'd M Y'

No, way. seems not work, same issue.

What should I do?
deltafidesign 28 Apr, 2013
Up to my previous post

I've settet format this way now and seems work:

format: '%d %m %Y'

Anyway, if I choose again the date after chosed one time it point me to another year.

Example, first I choose 28 04 2013

Then I choose again the date and now the calendar box is setted on 4 april 2015.

Any solution?
GreyHead 28 Apr, 2013
Hi deltafidesign,

Please post a link to the form so I can take a quick look.

Bob
GreyHead 28 Apr, 2013
Hi deltafidesign,

I think that the problem is that there are now two format options set for the datpicker. If I look at the page source I can see this
pickerClass: 'datepicker_vista', format: '%Y-%m-%d', allowEmpty: true, useFadeInOut: !Browser.ie, format: '%d %m %Y'


How are you setting this?

Bob
deltafidesign 28 Apr, 2013
Hi Bob,

I didn't setted it, just setted DateTime Picker config: format: '%d %m %Y'

and choosed Moo DatePicker Style "Vista"
This topic is locked and no more replies can be posted.