Jedhi Posted March 14, 2005 Posted March 14, 2005 long a = DateTime.Now.Ticks; DateTime.Now.AddMinutes(15); long b = DateTime.Now.Ticks; Following example shows that a and b have same value. Instead I have expected that b would have 15 minuttes more than a. How do I make it that way ? Quote
mskeel Posted March 14, 2005 Posted March 14, 2005 AddMinutes returns a date time. Fo b to have a + 15 minute you would have to make a statement like DateTime b = DateTime.Now.AddMinutes(15); or something very simliar to that. Read the documentation a little bit more on that method. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.