Date Manipulation/Calculation question...


Author
Message
StarkMike
StarkMike
Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)
Group: Forum Members
Posts: 436, Visits: 944
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. Hehe



Thanks for letting me share.
StrataFrame Team
S
StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
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 Smile
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search