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, biapar, Willr, Ingo, swaiba, simon_w

Day, Month, Year dropdown datefield


3 Posts   306 Views


13 August 2013 at 8:39pm Community Member, 3 Posts

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


14 August 2013 at 8:00pm Forum Moderator, 5511 Posts

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


15 August 2013 at 12:07am Community Member, 3 Posts

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.