I'm inclined to go with just lopping off the time from the date string and being done with it. As Dan says, we should be dealing with strings from Postgres here and we know what format they'll be in already.
All the timezone math seems like it would be error prone, as would manually building an ISO format string from a Date object.
I'm inclined to go with just lopping off the time from the date string and being done with it. As Dan says, we should be dealing with strings from Postgres here and we know what format they'll be in already.
All the timezone math seems like it would be error prone, as would manually building an ISO format string from a Date object.