Learn how to a build a cloud-first strategyRegister Now

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

How convert time to HH:MM AM/PM format

How do I convert a datetime field to HH:MM AM/PM (no seconds)?
0
RobertNZana
Asked:
RobertNZana
  • 3
1 Solution
 
DhaestCommented:
How can I format numbers and date/times using ASP.NET?
http://www.aspfaqs.com/aspfaqs/ShowFAQ.asp?FAQID=181
0
 
DhaestCommented:
String.Format("{0:HH:mm tt}", DateTime.Now))
   
0
 
DhaestCommented:
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

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