In various parts of my B4J server app, i need to obtain a datetime with different dateformat.
Actually, I backup and restore the current dateformat when I need, like this:
But with many parallel processes sometimes I have troubles.
Is there a method to obtain a datetime with a particular format in one single instruction ?
Actually, I backup and restore the current dateformat when I need, like this:
B4X:
Dim df As String=DateTime.DateFormat
DateTime.DateFormat="E dd/MM HH:mm:ss"
ntext=DateTime.date(DateTime.Now)
DateTime.DateFormat=df
But with many parallel processes sometimes I have troubles.
Is there a method to obtain a datetime with a particular format in one single instruction ?