StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Date Manipulation/Calculation question...Expand / Collapse
Author
Message
Posted 04/05/2007 3:53:10 PM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: 07/09/2008 2:20:16 PM
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.
Post #7923
Posted 04/09/2007 8:43:49 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Yesterday @ 1:09:23 PM
Posts: 2,686, Visits: 1,888
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


www.bungie.net
Post #7978
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 5:56am

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.125. 11 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.