converting dates

B

Bill Priess

string newDate = DateTime.Parse("07/04/03").ToLongDateString();

(You may need to do a String.Format() on it, but I am not sure)

HTH,

Bill P.
 
A

Allen Jones

That will give you the day of week as well.

Try:

string s = DateTime.Parse("07/04/03").ToString("MMMM dd, yyyy");

Look at the System.Globalization.DateTimeFormatInfo Class for a description
of the formatting string elements.

Regards
Allen
 

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

Top