By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,673 Members | 1,268 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,673 IT Pros & Developers. It's quick & easy.

converting dates

P: n/a
How can I convert '07/04/03' to 'July 4, 2003'?
thanks,
VM
Nov 13 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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.
<VM> wrote in message news:%2****************@TK2MSFTNGP10.phx.gbl...
How can I convert '07/04/03' to 'July 4, 2003'?
thanks,
VM

Nov 13 '05 #2

P: n/a
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

"Bill Priess" <no*****@nospam.com> wrote in message
news:ex**************@TK2MSFTNGP10.phx.gbl...
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.
<VM> wrote in message news:%2****************@TK2MSFTNGP10.phx.gbl...
How can I convert '07/04/03' to 'July 4, 2003'?
thanks,
VM


Nov 13 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.