Arjun Panwar

Arjun Panwar

  • NA
  • 10.6k
  • 5.8m

How to print only Date and Time (not seconds) in C#

Mar 13 2012 1:23 AM
Hi,

I am using LastWriteTime property for a file which I use, to print the last modified time. However, here when I use I get a value like-

    "3/13/2012 10:40:45 AM".

Can you tell me how to ignore seconds here meaning the output should be like: 3/13/2012 10:40 AM


Thanks


Answers (2)