We are building a more flexible date handling utility that allows typing in of not only a date but other stings. The basic signature of the call is
DateTime GetDateTime(DateTime? baseDateTime, string enteredValue)
the idea is they can enter a parsable date, or a set of strings that represents some concept.
Details below.
## Deliverables
yesterday
tomorrow
next week
next month
now
midnight (if date is already there, it computes it, if not, it computes from now)
noon (if date is already there, it computes it, if not, it computes from now)
military time: 0100, 1256 etc (if date is already there, it computes it, if not, it computes from now)
x hours ago
x hours from now
x days ago
x days from now
first of next month
first of last month
last of next month
last of last month
x day of next month
x day of last month
x am (if date is already there, it computes it, if not, it computes from now)
x pm (if date is already there, it computes it, if not, it computes from now)
military time entered (if date is already there, it computes it, if not, it computes from now)
yesterday x am
yesterday x pm
today x am
today x pm
x am tomorrow
x pm yesterday
x days ago x pm
x days from now x pm
x days ago x am
x days from now x am
sortable not delimited dates: 20120903
sortable delimited dates: 2012-09-03, 2012/09/03 etc
dates without slashes (02122014)
+ x hours (if date is already there, it computes it, if not, it computes from now)
- x hours (if date is already there, it computes it, if not, it computes from now)
+ x days (if date is already there, it computes it, if not, it computes from now)
- x days (if date is already there, it computes it, if not, it computes from now)
+ week (if date is already there, it computes it, if not, it computes from now)
- week (if date is already there, it computes it, if not, it computes from now)
+ month (if date is already there, it computes it, if not, it computes from now)
- month (if date is already there, it computes it, if not, it computes from now)