Form Designer: Display date values with ISO date format yyyy-MM-dd


We would like the date format to be ISO standard. Using the Form Designer we have tried to use the date format and it always displays the format of the culture. They added .NETcode to handle the culture and set the format they want which is yyyy-MM-dd, however they only get yyyy-m-d the leading zero is removed.

When you select the date from the calendar pop-up, the value that gets inserted into the text box does not have the leading zero.

How can they do this using the Form Designer?


Set the PadSingleDigits property to true for the calendar control to solve the issue:

protected void Page_Load(object sender, EventArgs e) 
 base.Page_Load(sender, e);
 REQUEST_DATETIME1_CAL.PadSingleDigits = true;