Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to know the exact dates/hh/min/sec between datetimes
Message
De
25/11/1999 14:05:26
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00295596
Message ID:
00295614
Vues:
18
>I will know how to get the amount of days,hours,minutes,seconds between two dates.
>
>Ex. Between 11/25/1999 AND 12/31/1999
>

Just subtract the dates - the difference is the number of days. Without a time reference, you can't get better granularity, it'll always be x days, 0 hours, 0 minutes, 0 seconds.

You can store datetimes and subtract datetimes, yielding a value in seconds and convert from there.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform