Input_date_tag - Leading Zero

Requests for new symfony features.

Moderators: dwhittle, Ian

Input_date_tag - Leading Zero

Postby gubartz » Mon Aug 06, 2007 10:31 pm

I was testing the input_date_tag WITHOUT rich text, and I noticed that the values generated for the html select for months and days go without a leading zero.

For exemple (1 => January, 2 => February, etc). Instead of 01 => January, 02 => February...

I'm currently using sqlite and there's a major problem with it. Because for Sqlite a date like 2007-01-01 is different from 2007-1-1. In fact the second form does not work at all, apparently sqlite does not support date data type.

Botton line, I think it would be nice to have an option for the input_date tag called 'leading_zero', which would put the leading zeros for values from 1-9.

Thanks.
Last edited by gubartz on Mon Aug 06, 2007 10:33 pm, edited 1 time in total.
gubartz
Junior Member
 
Posts: 4
Joined: Mon Aug 06, 2007 10:24 pm
Location: Brasil

Return to Feature requests

Who is online

Users browsing this forum: No registered users and 0 guests