Plain English String to Date Parser in Framework?

  • Thread starter Thread starter Mark S. Milley, MCAD (BinarySwitch)
  • Start date Start date
M

Mark S. Milley, MCAD (BinarySwitch)

Hi all -

I was wondering if anyone new of a string->date parser in the
framework--I'm looking for something that will parse a string like
"next week" or "today" or "this friday" into the appropriate relative
date.

For example, Microsoft Outlook uses this kind of functionality in the
tasks window. Enter text similar to the one above in the due date
field, and it will be replaced by the appropriate relative date.

Naturally, I could create a parser myself, but if anyone knew of one
inside the framework, it could save me some time.

Thanks,

-Mark
 
DateTime.Parse will support various forms of date notation, but for free
text like "today" "next thursday" etc you'll need to write something
yourself.

Peter
 
Back
Top