Join Slack
Powered by
Hey guys; what do you guys recommend for storing d...
# orm-help
m
Mike Pechousek
02/19/2019, 5:43 PM
Hey guys; what do you guys recommend for storing date of births in the DB?
r
rawriclark
02/19/2019, 5:58 PM
datetime or unix timestamp
rawriclark
02/19/2019, 5:58 PM
but then again what if the user is really old
rawriclark
02/19/2019, 5:58 PM
born 1950
rawriclark
02/19/2019, 5:59 PM
unix timestamp is not good ? xd
h
Harshit
02/19/2019, 6:51 PM
@Mike Pechousek
You can use our DateTime field
https://www.prisma.io/docs/datamodel-and-migrations/datamodel-MYSQL-knul/#datetime
Open in Slack
Previous
Next