On user registration page, I have added a date field in select list.
In the manage form display tab, I can set the order of the dropdown fields like day/month/year or month/day/year But I am unable to change the format of the date.
Currently in the day dropdown, it is displaying like 1, 2, 3
and I want to change it to 01, 02, 03
. Similarly in the month dropdown, it is displaying like, Jan, Feb
and I want to display it like January, February
.
Is this possible?
hook_form_alter()
, locate the selector for the date, and amend the labels programmatically.