Edit: I am confident because I purchased multiple tickets with multiple passengers and also had someone double check that I filled out the info correctly. All the date of births ended up being one day later than they should have been.
Edit: I am confident because I purchased multiple tickets with multiple passengers and also had someone double check that I filled out the info correctly. All the date of births ended up being one day later than they should have been.
Intl.DateTimeFormat[1] is a godsend for this.
[1]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
OTOH, if you need "instant of birth" then definitely get a time and timezone. Plus, converting to UTC and discarding the timezone observed at the place and political circumstance of birth would likely be a mistake.
Depending on time of birth it could have been you that was off by one
Working with dates in code is unnecessarily hard so naturally the results tend to be bug-ridden more often than not.