Italian Data di oggi DateTime.Now errata

Sabotto

Well-Known Member
Licensed User
Oggi, 5 agosto 2020, scrivo questo codice
B4X:
DateTime.DateFormat="dd/mm/yyyy"
   
Dim DataOggi As Long = DateTime.Now
       
Log("DATA: " & DateTime.Date(DataOggi))

Mi restituisce 05/02/2020..
Perchè mi dice che è febbraio?
 
Last edited:

Sabotto

Well-Known Member
Licensed User
Perché il Dataformat è sbagliato, devi scrivere:
B4X:
DateTime.DateFormat="dd/MM/yyyy"
ok. Grazie. Reminescenze del VB...
Chissà con "mm" il compilatore cosa intende? stamane ad esempio dava 06/40/2020
 

actarus63

Member
Licensed User
Longtime User

Hi try this project
 

Attachments

  • DATA.zip
    9 KB · Views: 287
Cookies are required to use this site. You must accept them to continue using the site. Learn more…