Android Question Format date

SamuelP

Member
Licensed User
Hy,

is there an easy way to get a datestring like "Di, 27.06.2017" ?

Does not work:
B4X:
DateTime.DateFormat  = "ddd, dd.MM.yyyy"
str = DateTime.Date(Datum)
 

Star-Dust

Expert
Licensed User
Longtime User
"ddd"? what's?
 
Last edited:
Upvote 0

LucaMs

Expert
Licensed User
Longtime User
While you type DateTime.TimeFormat you can see:
upload_2017-6-27_13-15-42.png


Click on the link.
 
Upvote 0

Mahares

Expert
Licensed User
Longtime User
Do you guys think SamuelP may want something like this:
B4X:
Dim str As String
    Dim myformat As String =DateTime.DateFormat
    DateTime.DateFormat  = "EEE, dd.MM.yyyy"
    str = DateTime.Date(DateTime.Now)
    Log(str)  'Displays: Tue, 27.06.2017
    DateTime.DateFormat =myformat
 
Upvote 0
Top