Search code examples
.nethumanizer

Convert casual language to date


I'm looking for a library for .NET which will take a date string like "two hours ago" or "3", meaning today at 3PM, and convert it to an actual date. Humanizer seems to do the opposite, taking a date and converting it to a more human-readable date, but I can't find anything that does it this way round. Any suggestions?


Solution

  • nChronic seems to do the job: https://github.com/robertwilczynski/nChronic