-
January 18th, 2012, 03:01 PM
#1
Subtracting Time
How can I subtract 2 minutes from the current time, and then get data at that particular time?
-
January 18th, 2012, 05:42 PM
#2
Re: Subtracting Time
To substract two minutes to the current time, you need to do this:
DateTime twoMinutesAgo = DateTime.Now - TimeSpan.FromMinutes(2);
I'm not sure what do you mean by "get data at that particular time". Are you working with some sort of database?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|