471,605 Members | 1,563 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,605 software developers and data experts.

current date minus 2 year

Hi,

How can I calculate the date 2 years ago?

I get a problem with datetime minus int (year).

Can someone help?

Thanks!
Dec 5 '05 #1
1 2772
DateTime.AddYears(-2);
"Arjen" <bo*****@hotmail.com> wrote in message
news:dn**********@news3.zwoll1.ov.home.nl...
Hi,

How can I calculate the date 2 years ago?

I get a problem with datetime minus int (year).

Can someone help?

Thanks!

Dec 5 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

15 posts views Thread by Paul J. Ettl | last post: by
1 post views Thread by sylvian stone | last post: by
1 post views Thread by Wayne | last post: by
6 posts views Thread by vijayk | last post: by
13 posts views Thread by maflatoun | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by MichaelMortimer | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.