Solved

format date string.

Posted on 2008-10-07
4
254 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

This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

861 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