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

Day, Month, Year dropdown datefield

Go to End

3 Posts   830 Views


Community Member, 3 Posts

13 August 2013 at 8:39pm

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


Forum Moderator, 5523 Posts

14 August 2013 at 8:00pm

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


Community Member, 3 Posts

15 August 2013 at 12:07am

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.