# How're you parsing dates?

**URL:** <https://users.rust-lang.org/t/howre-you-parsing-dates/144085>\
**Category:** help\
**Created:** [December 1, 2026, 3:55am UTC](https://users.rust-lang.org/t/howre-you-parsing-dates/144085 "2026-12-01T03:55:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![drmoose](https://sea1.discourse-cdn.com/flex019/user_avatar/users.rust-lang.org/drmoose/32/55213_2.png) [@drmoose](https://users.rust-lang.org/u/drmoose)\
**Post date:** [December 1, 2026, 3:55am UTC](https://users.rust-lang.org/t/howre-you-parsing-dates/144085/1 "2026-12-01T03:55:56Z")

</div>

I'm writing a program that needs to parse dates written by humans who don't necessarily follow any particular standard, the way [`date` from GNU coreutils](https://man.archlinux.org/man/date.1) can understand [nearly anything](https://www.gnu.org/software/coreutils/manual/html_node/Date-input-formats.html).

There's a crate that does exactly this, called `dtparse`, but its [git repo](https://github.com/bspeice/dtparse) hasn't been touched in two years and it also depends on `chrono` which has been [marked unmaintained](https://rustsec.org/advisories/RUSTSEC-2026-0543.html) recommending `jiff` or `time` crates as replacements.

Both of those crates offer built-in ways to parse date strings that are in a known format, but don't seem to be able to parse arbitrary strings like `"next tuesday"` or whatever a human might've typed. `temps::jiff` seems like it may do that, but doesn't seem to have much adoption.

Since GNU date's behavior was my original goal, a friend and I made a [crate that vendors gnulib's parse-datetime module](https://gitlab.com/drmoose/gnulib-parse-datetime.rs). So far it appears to work, but it has the usual downsides of linking against stuff in C: it's not threadsafe, it needs `unsafe{}`, and its behavior is sensitive to environment variables.

Is there a natural-language date parser crate I missed? Should I use `dtparse` and not worry about `chrono` as a transitive dependency being unmaintained? What's the correct way to parse unknown-format dates?

(First post here; sorry if it's offtopic. Thanks!)

---

<div class="post-metadata">

**Author:** ![mimaxon1](https://sea1.discourse-cdn.com/flex019/user_avatar/users.rust-lang.org/mimaxon1/32/55222_2.png) [@mimaxon1](https://users.rust-lang.org/u/mimaxon1)\
**Post date:** [December 1, 2026, 5:41am UTC](https://users.rust-lang.org/t/howre-you-parsing-dates/144085/2 "2026-12-01T05:41:48Z")

</div>

rosetta-date ? `let dt = rosetta_date::parse("5 days ago")?;` - no predefined date format needed, and it uses the `time` backend by default.

---

<div class="post-metadata">

**Author:** ![simonbuchan](https://sea1.discourse-cdn.com/flex019/user_avatar/users.rust-lang.org/simonbuchan/32/19939_2.png) [@simonbuchan](https://users.rust-lang.org/u/simonbuchan)\
**Post date:** [December 1, 2026, 7:22am UTC](https://users.rust-lang.org/t/howre-you-parsing-dates/144085/3 "2026-12-01T07:22:56Z")

</div>

[A quick search on lib.rs](https://lib.rs/search?q=date+parsing) finds a couple other good looking candidates:

> **[fuzzydate](https://lib.rs/crates/fuzzydate)**
>
> A flexible natural language date parsing library

> **[fdate](https://lib.rs/crates/fdate)**
>
> Natural date input parsing

I find lib.rs generally much better at matching and ranking results than [crates.io](http://crates.io), though it's been a long time since I've gone back to compare.
