B4A Question what date format is B4XTable.Setdata looking for? - Mikelgiles    Sep 25, 2019 I am loading data from a CSV file that has dates in the format of yyyy/mm/dd (2017/05/22) and in the table all dates show up as 12/31/1969 so I assume the date format in the csv file is not proper. I modified a date in the csv file to 20170522120000.000, 05/22/2017, 5/24/2017, and 5/24/17 but bu B4A Question Sqlite Could not open database - LucaMs (first post)    Feb 17, 2024   (2 reactions) Write Log(Todaysdb), in the first example.
You will likely need to set the date format before:
DateTime.DateFormat = "ddMMyyyy"
Instead of:
you could use File.DirInternal or xui.DefaultFolder B4A Question datetime, parse and ticks - Knoppi (first post)    Oct 11, 2022   (1 reaction) LastModified represents ticks (date & time)
You can solve it like this
'Test Dates
Dim lblUPLDataDesde As String ="2022-10-11"
Dim lblUPLDataAte As String = "2022-10-11"
Dim fname As String = "Testfile.txt"
DateTime.DateFormat = "yyyy-MM-dd HH:mm:ss"
Dim ValFrom As Long = D B4A Question Set date and gps - hub73 (first post)    Mar 17, 2016 Text = "Satellites:" & CRLF
For i = 0 To Satellites.Size - 1
Dim Satellite As GPSSatellite
Satellite = Satellites.Get(i)
lblSatellites.Text = lblSatellites.Text & CRLF & Satellite.Prn & _
" " & Satellite.Snr & " " & Satellite.UsedInFix & " " & Satellite.Azimut B4A Question ExifInterface saveAttributes crashes with "write failed: EBADF (bad file descriptor)" - Alain75 (first post)    May 26, 2024 The last thing I tried for the moment with no success (using java.io.File or ExternalStorage) is to change datetime of the compressed file to set original one but I think it is a very tricky problem. And Google is unfortunately more and more hardening file access, even in the external storage ! I kn B4A Question Dateformat and Phone Language - Mahares (first post)    Feb 14, 2015 Would this work for you: 1. Create a map that matches the vietnamese months( key) to the US months (value). 2. Then read the map to convert your date. See example below: Dim sets As Map 'Globals 'In Activity_create sets.Initialize sets.Put("thang mot", "January") sets.Put("tháng hai", B4R Question Setting time and date on files created on SD. - tigrot (first post)    May 15, 2018 That's what I did, but file name 8+3 is just a little space. Thank you Mauro B4J Code Snippet JRDC and Periodic backup of MySql database - marcick    Jun 13, 2017   (3 reactions) 1%" == " " set min=0%min:~1,1% :: Seconds set secs=%time:~6,2% if "%secs:~0,1%" == " " set secs=0%secs:~1,1% :: Year set year=%date:~-4% :: Month set month=%date:~3,2% if "%month:~0,1%" == " " set month=0%month:~1,1% :: Day set day=%date:~0,2% if "%day:~0,1%" == " " set day=0%day:~1,1% :: Set c B4J Question 3+ questions about dates in B4XTables from Excel spreadsheets - Mahares (first post)    Mar 03, 2023   (1 reaction) For your project to work properly, you have to set the dates as TEXT not DATE since you have mostly blank dates. The in memory database used by B4XTable expects ticks of those dates and converts the dates to ticks internally and display them as real dates on the B4XTable. If you set the dates as DAT B4i Library AS Alarm - Alarm clock or keep app active in the background - Alexander Stolte    Oct 17, 2024   (16 reactions) Please reopen so your alarms can be rescheduled.") Example project is attached Examples Private Sub xlbl_Start_Click 'Trigger the alarm in one minute CreateAlarm(1,DateTime.Now + DateTime.TicksPerMinute*1,File.Combine(File.DirAssets,"alarm_1.mp3"),False) End Sub Private Sub CreateAlarm Page: 1   2   3   4   5   6   7   Powered by ColBERT |