Plain English String to Date Parser in Framework?

Plain English String to Date Parser in Framework?

Post by BinarySwit » Thu, 26 Jan 2006 00:09:35


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
 
 
 

Plain English String to Date Parser in Framework?

Post by Peter Foot » Thu, 26 Jan 2006 00:31:01

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

--
Peter Foot
Windows Embedded MVP
www.peterfoot.net | www.inthehand.com

"Mark S. Milley, MCAD (BinarySwitch)" < XXXX@XXXXX.COM > wrote