iOS Question [B4X] DateTime.Date gets the year as short number 21 instead of 2021

cklester

Well-Known Member
Licensed User
I think you can set DateFormat.

B4X:
DateTime.DateFormat = "yyyy.MM.dd"
DateTime.Now '2021.03.11

Then it should spit it out like you want.

In your case:

B4X:
DateTime.DateFormat = "dd.MM.yyyy"
 
Last edited:
Upvote 0
Top