Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Date verification from a number of minutes
Message
 
To
20/07/2006 00:17:10
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01137919
Message ID:
01137929
Views:
9
This message has been marked as the solution to the initial question of the thread.
if ( DateTime.Now < OriginalDate.AddMinutes(2163) )
  // Ok
else
  // expired

+++ Rick ---

>I need to apply a date verification from a number of minutes. Basically, I have a date field and a number of minutes. So, 2163 means 1 day, 12 hours and 3 minutes. Given 2163, I need to verify if a date field has elapsed that duration. So, if the date field is equal to 20/07/2006 01:14:32 and I am comparing it to now, I need to verify if the 2163 minutes has expired. What would be the simplest approach to achieve that?
>
>As an example, if 20/07/2006 01:14:32 is the value and now is equal to 21/07/2006 01:14:32, this means the time is not expired. But, if now is equal to 22/07/2006 01:14:32, this means the time has expired because 2163 minutes represents a duration that is under the time duration difference of the two dates.
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform