B4A Code Snippet [B4X] Set date format with locale - Erel    Feb 20, 2022   (12 reactions) Cross platform code to change the date format with an explicit locale: Private Sub SetDateFormat... DateFormat As JavaObject DateFormat.InitializeNewInstance("java.text.SimpleDateFormat...("anywheresoftware.b4a.keywords.DateTime", "getInst", Null, Null) r.SetField2("dateFormat", DateFormat) #else if B4i Dim locale As NativeObject locale = locale.Initialize...("dateFormat").SetField("locale", locale) DateTime.DateFormat = format #End if... Wish [B4X] B4XTableColumn DateFormat property - LucaMs    Jan 8, 2024 https://www.b4x.com/android/forum/threads/b4x-b4xtable-and-date-fields.158519/post-973153... B4A Library [B4X] Format dates in GMT time zone without changing the app's time zone - Erel    Apr 8, 2021   (18 reactions) Usage example: Dim formatter As GMTFormatter formatter.Initialize("yyyy-MM-dd-'T'HH:mm:ss'Z'") Log(formatter.Format(DateTime.Now)) ... B4A Question DateFormat Tolerant of Spaces Between Date Components - Mahares    Dec 14, 2021 temp As String = "2020 : 09 : 20 12:50:50" 'works
DateTime.DateFormat... 'works
DateTime.DateFormat= "yyyy : MM : dd HH:mm:ss"
Dim temp As String = "2020: 09: 20 12:50:50" 'works
DateTime.DateFormat= "yyyy:MM:dd HH:mm:ss"
Dim temp As String = "2020 : 09 : 20 12:50:50" 'works
DateTime.DateFormat... B4A Question Strict three-letter month names in formatted dates - Brian Dean    Apr 10, 2025 I am storing dates in integer variables as a "day value" - ie whole days derived from normal DateTime values. I convert these values to text as follows :
value to date string"]Private Sub dayToDate(day As Int) As String
DateTime.DateFormat = "dd MMM yy"
Dim conv As Long = day
Return DateTime.Date(conv * 24 * 3600 * 1000)
End Sub
However dates in September... B4A Question Is DateTime.DateFormat permanent? - emexes (first post)    Aug 22, 2025   (2 reactions)
I was reading that I had to save the current value of DateFormat, change it, do some code related to the date, and then revert it back.
If you always set DateFormat before you use it, without any other changes to it in-between where you set it and where you use it, then you don't have to do... Italian [B4X] DateFormat - e' possibile visualizzare anche i millisecondi ? - amorosik    Aug 28, 2020 Vorrei fare un log su file di testo di alcuni eventi all'interno app Android (b4a) e Pc (b4j)
Vedo che nel formato da utilizzare per le date/ora non appaiono i millisecondi
Come fare per avere... B4J Code Snippet Get Month Short Names (according to Java SimpleDateFormat) - Chris2    Jul 31, 2025   (3 reactions) Private Sub GetMonthShortNames As List Dim l As List l.Initialize For i=1 To 12 DateTime.DateFormat="M" Dim longDT As Long = DateTime.DateParse(i) DateTime.DateFormat="MMM" l.Add(DateTime.Date(longDT)) Next Return l End Sub Tip: They're not always what you might expect (at least in English) ;)... B4J Question Weird Date formatting issue - techknight    Feb 26, 2020 I am having a problem with the date formatting. This is running in a Raspberry Pi, and I just....DateFormat = "MMM DD"
DateTime.TimeFormat = "HH:mm:ss"
Select... B4J Question B4J server logs folder log files date+time format - AnandGupta    Jul 9, 2022 .request.log
Now the date time are written as GMT +0000.
131273
How can I make it to write the date... Page: 1   2   3   4   5   6   |