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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top