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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top