Converting date to local specific information

  • Thread starter Thread starter Muscha
  • Start date Start date
M

Muscha

Hi,

How do I convert a DateTime structure into the same format with the current
setting on Windows?

thanks,

/m
 
I haven't tried it, but how about

DateTime.Now.ToString(System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat.GetFormat);
 
Convert.ToDateTime(dset_Row[sa_MainFrame00Rows[3]]).ToString("d");

Mark Johnson, Berlin Germany
(e-mail address removed)
 
Back
Top