I've a DateEdit field (dtDataOraRicezione) with "f" Mask to show current date and short time.
In properties: dtDataOraRicezione.Properties.Mask.UseMaskAsDisplayFormat = true
I've used too: dtDataOraRicezione.Properties.Mask.Culture = new CultureInfo("it-IT");
At design time display field is "mercoledì 18 luglio 2012 9:24" but at run time it shows "mercoledì 18 luglio 2012 9.24".
I'd like my DateEdit show correct time format with ":" not ".".
If DateEdit mask id "F" it work well: "mercoledì 18 luglio 2012 9:24:16
What I wrong?
Thank you for contacting us.
According to Italian time format specifications (described in Italian (Italy) (it-IT), for example), a proper time delimeter is a dot (".") rather than a colon (":"). I have tested both short and long time masks and made sure that they both use a dot as a delimeter. However, if you wish to use the colon, use the DateTimeFormatInfo.ShortTimePattern and DateTimeFormatInfo.TimeSeparator properties to specify a string that separates the components of time.
I have created a sample project to demonstrate this approach in action. Please let us know whether or nor this solution meets your requirements. If it does not, feel free to reactivate this ticket.