Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

DateField dateformat problem [SS3]

Go to End

2 Posts   845 Views


Community Member, 18 Posts

7 October 2012 at 3:51pm

I've spent few hours on trying to make datefield work, but with no success.
My problem is that when try to save a datefield in a gridfield it always set month to 00, and set the value in the database to 01. I Tried many different dateformat for eg. 'd.m.Y' but it doesn't work.
I use version 3.01 but it seems that this happens also in 3.02 + in 3.02 populateDefaults doesn't work.

Any clue how to fix it?


Community Member, 69 Posts

7 October 2012 at 7:34pm

i had a problem in first instance with de datefield in the blog... found out that in the (admin) account settings the date_format should be: 03/09/2012.

Maybe take a look in the blog module how they use it!
With the blog its working perfectly now