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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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   1167 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, 5523 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.