CSV Date Italian Format

luca.decarlo

New Member
By importing a CSV file with date in Italian format (dd-mm-YY), set today's date in the jdate field in all records.
 
I'm trying to import the csv file like you said:

1. create the db structure but the fields have complete filenames are different than those generated by the elements menu. (see attachment)

2. does not match a db table

3. on import it returns an error (attachment)

----- cassa.csv ----
"Data","Descrizione","Categoria_Incasso","entrate","uscite","idDocumento","idFornitore","idPagamento","idArticolo"
01/07/2023,"Olio 5W40 + Pasticca",6,24,0,0,,2,
01/07/2023,"Olio 5W40",6,30,0,0,,1,
03/07/2023,"Tagliando Dacia",7,0,32,0,4,1,
03/07/2023,"Cuffua freni e candele",7,320,0,108,,1,
03/07/2023,"Tagliando DACIA Logan",7,95,0,109,,1,
03/07/2023,"Lavaggio",5,20,0,0,,2,
03/07/2023,"Lucidatura fanali",9,50,0,0,,2,
04/07/2023,"Benny",11,0,25,0,,1,
05/07/2023,"Varie Peugeot 106",7,0,66,0,4,1,
05/07/2023,"Spazzole tergi",8,0,14,0,4,1,
 

Attachments

  • Screenshot 2023-07-05 104014.png
    Screenshot 2023-07-05 104014.png
    238.6 KB · Views: 49
  • Screenshot 2023-07-05 103842.png
    Screenshot 2023-07-05 103842.png
    93.3 KB · Views: 41
  • Screenshot 2023-07-05 103854.png
    Screenshot 2023-07-05 103854.png
    113.1 KB · Views: 42
  • Screenshot 2023-07-05 103944.png
    Screenshot 2023-07-05 103944.png
    84.5 KB · Views: 45
Ok, done and the import works, even if the numeric fields created them varchar.
If I try to edit the field from the elements section, I always get the same error (see attachment)
If instead I create the element manually and try to change it from text to number and vice versa it works!
 

Attachments

  • Screenshot 2023-07-06 144340.png
    Screenshot 2023-07-06 144340.png
    90.4 KB · Views: 41
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top