I am implementing a Fuzzy Date control in C# for a winforms application. The Fuzzy Date should be able to take fuzzy values like
We have a similar control. We just add a list of combo boxes - controls to pick your choice.
PeriodSelector:
And just take the choices that make sense for your purpose.
It's a lot easier to implement this then parsing the text. The calculations are rather straightforward.
It's important to see that you are picking a period. Last year means from january 2008 > december 2008. Two hours ago from now untill now - 2 hours. Etc.