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


Reply


3 Posts   340 Views

Avatar
Neel

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.

Avatar
Willr

Forum Moderator, 5513 Posts

14 August 2013 at 8:00pm

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

Avatar
Neel

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.