SamuelP Member Licensed User Jun 27, 2017 #1 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)
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 Jun 27, 2017 #2 "ddd"? what's? Last edited: Jun 27, 2017 Upvote 0
eurojam Well-Known Member Licensed User Longtime User Jun 27, 2017 #3 as Android is java, you can try the format strings here: https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html B4X: DateTime.DateFormat = "EEE, d MMM yyyy HH:mm:ss Z" Upvote 0
as Android is java, you can try the format strings here: https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html B4X: DateTime.DateFormat = "EEE, d MMM yyyy HH:mm:ss Z"
LucaMs Expert Licensed User Longtime User Jun 27, 2017 #4 While you type DateTime.TimeFormat you can see: Click on the link. Upvote 0
M Mahares Expert Licensed User Longtime User Jun 27, 2017 #5 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
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
LucaMs Expert Licensed User Longtime User Jun 27, 2017 #6 Mahares said: Do you guys think Click to expand... Think? Too tiring! Upvote 0
SamuelP Member Licensed User Jun 27, 2017 #7 Perfect! B4X: "E, dd.MM.yyyy" does what I was looking for. Last edited: Jun 27, 2017 Upvote 0