Jump to:

23377 Posts in 18296 Topics by 2867 members

General Questions

SilverStripe Forums » General Questions » Day, Month, Year dropdown datefield

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: 277 Views
  • Neel
    Avatar
    Community Member
    3 Posts

    Day, Month, Year dropdown datefield Link to this post

    I am trying to achieve Datefield with three separate dropdown field day, Month and Year. any suggestion/help will be appreciated.

  • Willr
    Avatar
    Forum Moderator
    5490 Posts

    Re: Day, Month, Year dropdown datefield Link to this post

    $datefield->setConfig('dmyfields', true);

  • Neel
    Avatar
    Community Member
    3 Posts

    Re: Day, Month, Year dropdown datefield Link to this post

    Thanks Willr for your suggestion. i have tried that but dmyfields return empty array in database. i could not figureout the way to join the dmyfield to get the Value as a Date ( i.e. 15/08/2013) instead of word "Array" in a database.

    277 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.