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

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
Cookies are required to use this site. You must accept them to continue using the site. Learn more…