tiago posted on Monday, June 02, 2008
Hi all,
I find SmartDate quite useful. But I thought I could improve it.
Besides the standard
- Yesterday or "y" or "-"
- Today or "t" or "." (dot)
- Tomorrow or "tom" or "+"
I added
- "<" to enter the same day of last month
- ">" to enter the same day of next month
- "-nn" to enter nn days before the current date
- "+nn" to enter nn days after the current date
- ".nn" (dot nn) to enter nn day of the current month
- "<nn" to enter nn day of last month
- ">nn" to enter nn day of next month
- "nn" to enter nearest nn day (if today is the 25th, the nearest 5th will be next month, although the nearest 15th was this same month)
I had to change SmartDate.cs. I enclose the changed file as well as the diff file. SmartDate.cs will go on the Csla folder.
Rocky, can you consider including this change on the next release?
TIA