mc73 Well-Known Member Licensed User Longtime User Apr 23, 2012 #1 I use this code: B4X: Dim forDate As String DateTime.DateFormat ="dd/MM/yyyy - hh:mm:ss" forDate=DateTime.Date(DateTime.now) Time appears in 12h format, thus for e.g. 20:32 becomes 08:32. Any idea on what I'm doing wrong?
I use this code: B4X: Dim forDate As String DateTime.DateFormat ="dd/MM/yyyy - hh:mm:ss" forDate=DateTime.Date(DateTime.now) Time appears in 12h format, thus for e.g. 20:32 becomes 08:32. Any idea on what I'm doing wrong?
R Roger Garstang Well-Known Member Licensed User Longtime User Apr 23, 2012 #2 Isn't 24hr format HH? I believe it is displaying correct according to what format you have. Upvote 0
mc73 Well-Known Member Licensed User Longtime User Apr 23, 2012 #3 You mean, I should set hh to uppercase? Upvote 0
mc73 Well-Known Member Licensed User Longtime User Apr 23, 2012 #5 That was exactly the problem, thank you very much. Upvote 0