By StarkMike - 4/5/2007
I'm surprised that it's not easier to calculate or manipulate dates in VB .NET. For instance there is no easy way to get the first day of the previous month or the last day of next month for that matter.
So what I did was create a class that houses these funky calculations so instead of remembering these funky calculations I just call a property or method from this Calendar class. The class diagram of my class is below:

I know I'm not asking a question but experience tells me that once I do something myself and then mention it... somebody tells me of a better way and/or a product that does this and more. 
Thanks for letting me share.
|
By StrataFrame Team - 4/9/2007
Hehe, you are so right in posting that tip here. Quite frankly, I haven't found a better way within the framework to do such a thing. In fact, we created a class within one of our commercial products to do just this. Thanks for posting your idea
|
|