I have a csv formatted with dates fields formatted dd/mm/yyyy. In firestore, I have two important date fields one should be a string and one should be a timestamp.
For the string field, if I try inserting str(date) it will be inserted as yyyy/mm/dd
For the timestamp field, I tried
from dateutil.parser import parse
dateResult = parse(dateString, dayfirst=True)
It inserts as mm/dd/yyyy, I also have a createdAt field which should insert the time now as dd/mm/yyyy
datetime.datetime.now().strftime("%d/%m/%Y %H:%M:%S")
but it is also inserted as mm/dd/yyyy
How to force Firestore to store dates either as DateTime, timestamp or stings in the format specified?