you'll have to use some culture info
DateTime date = DateTime.Now;
string key =
date.ToString("MM/dd/yyyy",System.Globalization.DateTimeFormatInfo.CultureIn
fo);
--
Vadym Stetsyak aka Vadmyst
http://vadmyst.blogspot.com
"Herve Bocuse" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> I have a datetime variable. I would like to display it as the system
> does (as it was chosen by the user in the regional settings). I can
> find how to write it as short time or long time but not as defined in
> the control panel.
>
> Thank you
>
> Herve
>