StrataFrame Forum
Back
Login
Login
Home
»
.NET Forums
»
General .NET Discussion
»
Date Manipulation/Calculation question...
Date Manipulation/Calculation question...
Post Reply
Like
0
Date Manipulation/Calculation question...
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
StarkMike
StarkMike
posted 18 Years Ago
ANSWER
Topic Details
Share Topic
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.
Thanks for letting me share.
Reply
Like
0
StrataFrame Team
S
StrataFrame Team
posted 18 Years Ago
ANSWER
Post Details
Share Post
S
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
Reply
Like
0
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Post Reply
Like
0
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search