Jump to:

23364 Posts in 18142 Topics by 2862 members

General Questions

SilverStripe Forums » General Questions » DateField dateformat problem [SS3]

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

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

Page: 1
Go to End
Author Topic: 366 Views
  • n0ne
    Avatar
    Community Member
    18 Posts

    DateField dateformat problem [SS3] Link to this post

    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?

  • haantje72
    Avatar
    Community Member
    69 Posts

    Re: DateField dateformat problem [SS3] Link to this post

    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

    366 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.