c# - How to exclude seconds from DateTime.ToString() -


i using datetime.now.tostring() in windows service , giving me output "7/23/2010 12:35:07 pm " want exclude second part, displaying minute.

so how exclude seconds format...?

output short date pattern:

datetime.now.tostring("g") 

see msdn full documentation.


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -