Alexander Stolte Expert Licensed User Longtime User Mar 10, 2021 #1 How can i get the year as 2021 instead of 21? B4X: DateTime.Date(dt_end)'28.02.21
cklester Well-Known Member Licensed User Mar 11, 2021 #2 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: Mar 11, 2021 Upvote 0
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"
klaus Expert Licensed User Longtime User Mar 11, 2021 #3 B4X: DateTime.DateFormat = "dd.MM.yy" Upvote 0