frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: What's your strategy for inconsistent date formats?

2•Gyanangshu•2h ago
Working on a data cleaning tool and running into a problem I haven't found a clean solution for: user-uploaded CSVs where a single date column has multiple formats. Not just ISO vs US vs European - but also relative formats ("Jan-23"), written formats ("15th January 2023"), and partial dates all mixed together.

The naive approach of trying a list of strptime format strings in order breaks on ambiguous dates like "01/02/03" - is that January 2nd 2003, or February 1st 2003, or 1st February 2003? The answer depends on the locale and context that we often don't have.

Our current approach: scan the first 50 non-null values, rank format candidates by match frequency, flag ambiguous dates for user confirmation, and store the detected format alongside the column metadata for future imports. We handle about 94% of real-world mixed-format columns automatically, but the remaining 6% need user input.

Some patterns that came up more often than expected in real datasets: dates with ordinal suffixes ("1st", "2nd", "3rd"), fiscal quarter notation ("Q3 2024"), and Unix timestamps stored as strings.

Curious what approaches others have used, particularly around the ambiguity resolution step.

Comments

stop50•1h ago
Localization for ui only. Im- and exported data only in standard formats
freakynit•43m ago
A known issue.. have faced this personally long back (had to let it go back then since the use-cases was no more valid) ... but, will this help?

https://github.com/freakynit/smart-date-parser

This does maintain context based on past successful parses.

Disclaimer: This is fully opus generated, but do have test cases (in usage.js ... i know.. it's not what it's for.. but it is what it is).

Highly rated Cryptocurrency Exchanges in 2026

https://medium.com/coinmonks/top-highly-rated-cryptocurrency-exchanges-8d1301f08c6e
1•Emmawoods•4m ago•0 comments

Show HN: Replace standups with automated Git reports

https://gitmore.io
1•amitousablitou•4m ago•1 comments

"Lab Leak: The True Origins of Covid-19" from Whitehouse.gov

https://www.whitehouse.gov/lab-leak-true-origins-of-covid-19/
1•monooso•10m ago•0 comments

Show HN: STT.ai – Free Speech to Text Transcription

https://stt.ai/
1•nadermx•13m ago•0 comments

Characterizing Delusional Spirals Through Human-LLM Chat Logs

https://spirals.stanford.edu/research/characterizing/
1•uxhacker•15m ago•0 comments

Show HN: Neural Abyss – PyTorch multi-agent combat simulator

https://github.com/ayushdnb/Neural-Abyss
1•luthor190397•17m ago•0 comments

C++26: Span Improvements

https://www.sandordargo.com/blog/2026/03/18/cpp26-span-improvements
1•jandeboevrie•21m ago•0 comments

Lessons from Building Claude Code: How We Use Skills

https://twitter.com/trq212/status/2033949937936085378
1•heftykoo•21m ago•0 comments

How to Make Sense of AI

https://commoncog.com/how-to-make-sense-of-ai/
2•swolpers•24m ago•0 comments

Show HN: A client-side visual workflow builder for PDFs

https://www.convertuniverse.com
1•Lyriryl•26m ago•1 comments

I built a tool that turns screen recordings into videos and docs automatically

https://www.clevera.ai/
2•roozfir•28m ago•1 comments

Show HN: Simplecap, a simple cap table modelling tool

https://www.simplecap.info/
1•jhrf•31m ago•0 comments

Spotify Exclusive Mode: bit perfect playback

https://community.spotify.com/t5/Community-Blog/Desktop-Exclusive-Mode-now-available/ba-p/7371590
1•HelloUsername•31m ago•0 comments

Aharonov-Bohm Effect Cybersecurity

https://github.com/autonomous019/ahronov-bohm-cybersecurity
1•beeburrt•33m ago•1 comments

Travel Writing Map

https://erikchou.com/travel
1•Cloud9c•33m ago•0 comments

I Exposed California's Billion Dollar Fraud Crisis

https://www.youtube.com/watch?v=kegwwB4RHgA
1•philipallstar•34m ago•1 comments

Adventures in Decoding Outlook's Hxstore

https://johnson.fyi/post/reverse-engineering-outlook-hxstore
1•elwesties•36m ago•1 comments

Germany's culture minister cancels presentation of Booksellers' Prize

https://www.wsws.org/en/articles/2026/03/16/5a65-m16.html
1•vrganj•39m ago•0 comments

Mamba-3: Improved Sequence Modeling Using State Space Principles

https://arxiv.org/abs/2603.15569
1•anentropic•41m ago•1 comments

Reverse Engineering a DOS Game with Ghidra and Codex

https://alexbevi.com/blog/2026/03/14/reverse-engineering-a-dos-game-with-ghidra-and-codex/
1•alberto-m•45m ago•0 comments

A mystery AI model has developers buzzing: Is this DeepSeek's latest blockbuster

https://www.thehindu.com/sci-tech/technology/a-mystery-ai-model-has-developers-buzzing-is-this-de...
1•vismit2000•47m ago•1 comments

Making AI Agents Safe to Run in Manufacturing ERPs

https://zeehub.ai/blog/from-advisory-to-autonomous-making-ai-agents-safe-to-run-in-manufacturing....
2•snirkhe•47m ago•1 comments

Prototype quantum battery achieves full cycle, shows faster-with-scale charging

https://thedriven.io/2026/03/18/australian-scientists-hail-breakthrough-in-quantum-batteries-and-...
1•fhub•48m ago•0 comments

Meta's "digital ghost" patent has nothing to do with dead people

1•sharjil_k•48m ago•1 comments

Show HN: NetLab – A browser based packet tracer alternative

https://netlab.thecybersecguru.com
9•lesterrue•52m ago•0 comments

Strategic Forgetting: A Cognitive Architecture for Long Horizon Autonomy

https://blog.nishantsoni.com/p/strategic-forgetting-a-cognitive
2•sonink•54m ago•0 comments

Psi-Commit – Cryptographic Commitments Anchored to Bitcoin via OpenTimestamps

https://psicommit.com/
1•RayanOghabian•58m ago•1 comments

Microsoft weighs legal action over $50B Amazon-OpenAI cloud deal

https://www.ft.com/content/e814f4c3-4fb5-4e2e-90a6-470044436b39
3•merksittich•1h ago•2 comments

The Agent's Disposable UI

https://gdaybrice.com/the-agents-disposable-ui
1•gdaybrice•1h ago•0 comments

Polycode – self-hosted GitHub bot that runs AI agent workflows from issue labels

2•xeroc•1h ago•0 comments