M B

M B

  • NA
  • 10
  • 25.4k

String Format for DateTime [C#]

Apr 26 2016 9:04 AM
Code here :-
      string CurrentTime = String.Format("{00:t}", DateTime.Now);
OutPut Something like this :- 9:45 AM
 
how can get time value something like this :- 09:45 AM
 
please let me know how to get this Time format :- 09:45 AM
 

Answers (1)