Solved

format date string.

Posted on 2008-10-07
4
260 Views
Last Modified: 2012-05-05
I have the following:
Profile.DOB.ToLongDateString();
"August-31-08"
I would like to have it in the format August 31,2008
0
Comment
Question by:mathieu_cupryk
  • 2
  • 2
4 Comments
 
LVL 26

Accepted Solution

by:
Anurag Thakur earned 500 total points
ID: 22664852
DateTime.Now.ToString("MMMM dd, yyyy")
0
 
LVL 26

Expert Comment

by:Anurag Thakur
ID: 22664856
0
 
LVL 55

Expert Comment

by:Jaime Olivares
ID: 22664875
use:

Profile.DOB.ToString("MMMM dd, yyyy");
0
 
LVL 55

Expert Comment

by:Jaime Olivares
ID: 22664880
oops, too late.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question