Hi
Today is november 28
Above line returns 11.. it seems return month?
This is the sub:
It returns "20171111"
The same sub works In B4A
Today is november 28
B4X:
sAux2 = sf.DayOfMonth (sf.Today())
This is the sub:
B4X:
Sub sNombreFichero As String
Dim sAux As String
Dim sAux2 As String
sAux = sf.Year (sf.today())
sAux2 = sf.Month (sf.Today())
If sAux2.Length = 1 Then sAux2 = "0" & sAux2
sAux = sAux & sAux2
sAux2 = sf.DayOfMonth (sf.Today())
If sAux2.Length = 1 Then sAux2 = "0" & sAux2
sAux = sAux & sAux2
Return sAux
End Sub
It returns "20171111"
The same sub works In B4A