I'm using a date list in my form for the dropdown lists. I'm just using the Day, Month, Year without the date format.
Upon submission, the date format in my handler is submitting as "2013-05-06T00:00:00-0400".

I would like to have it just with the date format. Is this possible?

Comments

Thinkingbox-Tien created an issue. See original summary.

jrockowitz’s picture

Status: Active » Closed (works as designed)

The datelist element supports date & time. There is no way to remove the time. You can control the formatting to display just the date without the time.

artis’s picture

@jrockowitz: I was wondering if there is any change (since it's been 4 years) as to the possibility of having a Date List that stores only a date YYYY-MM-DD in the database like a Date field does. My use case prefers the select options but having timezones in the database is a headache when creating custom reports on submission data.

If this is still not possible with the core #datelist type, would you recommend that I create a separate custom webform element based on the Date element which displays
options like datelist? Or would it be better to provide a patch on the existing Date element in Webform to add this functionality? Which would you prefer as it could lead to confusing UI either way?

Thanks.