Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

datetime in specific format c#

Format	Result
DateTime.Now.ToString("MM/dd/yyyy h:mm tt")	05/29/2015 5:50 AM
DateTime.Now.ToString("MM/dd/yyyy HH:mm:ss")	05/29/2015 05:50:06
 
PREVIOUS NEXT
Tagged: #datetime #specific #format
ADD COMMENT
Topic
Name
2+8 =