DateTime format
C#
3
Posts
2
Posters
0
Views
1
Watching
-
Hi All, I need to display time in the following format: 7:40a (not AM/PM whole word just A/P in lowercase) So how could I achieve this?
-
Hi All, I need to display time in the following format: 7:40a (not AM/PM whole word just A/P in lowercase) So how could I achieve this?
I think string strDT = .value.toShortDateTimeString().Replace("AM","a").Replace("PM","p"); It can be a bad way but it's a simple way
-
I think string strDT = .value.toShortDateTimeString().Replace("AM","a").Replace("PM","p"); It can be a bad way but it's a simple way
Thanks buddy, it is working fine.