converting dates

  • Thread starter Thread starter Guest
  • Start date Start date
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.
 
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
 
Back
Top