Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Compact Framework / January 2006

Tip: Looking for answers? Try searching our database.

Plain English String to Date Parser in Framework?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mark S. Milley, MCAD (BinarySwitch) - 24 Jan 2006 15:09 GMT
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
Peter Foot [MVP] - 24 Jan 2006 15:31 GMT
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

Signature

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

> Hi all -
>
[quoted text clipped - 13 lines]
>
> -Mark

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.