Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Date verification from a number of minutes
Message
 
À
20/07/2006 00:17:10
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01137919
Message ID:
01137929
Vues:
10
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?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform