Best way to change Date Picker formatting
Posted: 03 September 2010 09:36 PM   [ Ignore ]
Wallflower
Avatar
Rank
Total Posts:  30
Joined  2010-08-10

I want to change the default formatting for the date picker (it puts a date in there automatically and formats it so it is compliant with the entry date format, right?)

Is the best way to do this, add the datepicker=“no” parameter and then put in my own jquery statement? Just curious if this is the easiest way.

Profile
 
 
Posted: 03 September 2010 09:42 PM   [ Ignore ]   [ # 1 ]
Teen Scream
Avatar
RankRankRank
Total Posts:  3541
Joined  2009-05-29
kellypacker - 03 September 2010 09:36 PM

I want to change the default formatting for the date picker

it puts a date in there automatically and formats it so it is compliant with the entry date format, right?

Yep.

Is the best way to do this, add the datepicker=“no” parameter and then put in my own jquery statement? Just curious if this is the easiest way.

Sure, if you wanted to. Take a look at the JS it outputs for a head start. But if you submit a date that isn’t formatted according to EE specs, you’ll get an error FYI.

Profile
 
 
Posted: 03 September 2010 11:31 PM   [ Ignore ]   [ # 2 ]
Absolute Heartthrob!
Avatar
RankRankRankRankRank
Total Posts:  10369
Joined  2008-09-29

One of these days we’ll do some auto conversion on times to get around this issue.

 Signature 
Profile