[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 280
  • Last Modified:

format date string.

I have the following:
Profile.DOB.ToLongDateString();
"August-31-08"
I would like to have it in the format August 31,2008
0
mathieu_cupryk
Asked:
mathieu_cupryk
  • 2
  • 2
1 Solution
 
Anurag ThakurCommented:
DateTime.Now.ToString("MMMM dd, yyyy")
0
 
Jaime OlivaresCommented:
use:

Profile.DOB.ToString("MMMM dd, yyyy");
0
 
Jaime OlivaresCommented:
oops, too late.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now