Allow to enter only year and month in date picker

procajlok

Member
Hello!
Is it possible to configure standard date field (with calendar) to allow enter only month and year or full date, when i know it ?

Maybe it's possible from other field component?

Thank you for any help :)
 
No, I don't think so.

You could configure the form format to not include the day, so selecting any day in a month would just input Y-m (or whatever), but I can't think of a way of making it dual function, so it'll sometimes accept without a day and sometimes not.

You could use the "birthday" element, but that is of limited use if you want to do any date handling elsewhere, as it stores the data in a proprietary JSON format, not as a datetime field.

-- hugh
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top