SmartDate enhancements (v.2)

SmartDate enhancements (v.2)

Old forum URL: forums.lhotka.net/forums/t/4933.aspx


tiago posted on Tuesday, June 03, 2008

Hi all,

I find SmartDate quite useful. But I thought I could improve it.

Besides the standard CSLA shortcuts for dates

I added the following shortcuts

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

P.S. - Yesterday right after posting, I realised there were problems changing year. Now those problems are solved. As a side effect, non existent days of short monthes (31st Feb, etc) are now converted to the last existent day of that month. Suppose you are on 10th May and input ">31". As there is no 31st Jun, instead of producing an illegal date, ">31" is converted to the 30st Jun. 

tiago replied on Saturday, February 26, 2011

Hi Rocky,

I have this working on Csla 4.1.0.

The same question though:

Rocky, can you consider including this change on the next release?

tiago replied on Saturday, February 26, 2011

Forgot to say: the attachement includes:

- replacement SmartDate.cs

- diff file with just the changes

RockfordLhotka replied on Saturday, February 26, 2011

I'll add this to the wish list, thanks.

Copyright (c) Marimer LLC