dateFormat problem

mc73

Well-Known Member
Licensed User
Longtime User
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?
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…