Android Question About GMTFormatter lib

asales

Well-Known Member
Licensed User
This lib only change the format of the date string or make changes in the date/hour format in the device, besides not change the time zone?

I use this code to create a image file with the date/hour in the file name:
B4X:
DateTime.DateFormat = "ddMMyyyy"
DateTime.TimeFormat = "HHmm"

ImgFileName = "myfile_" & DateTime.Date(DateTime.Now) & DateTime.Time(DateTime.Now) & ".jpg"   'output: myfile_0405211032.jpg

'back to the original format used in my app
DateTime.DateFormat = "dd/MM/yyyy"
DateTime.TimeFormat = "HH:mm:ss"
Can I replace to use this lib to create the name of the file without need change the date/hour format the device?
 
Top