1
Answer

String Format for DateTime [C#]

M B

M B

8y
449
1
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)