Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How i Subtract time from Time
Message
De
09/08/2002 04:57:47
 
 
À
09/08/2002 04:03:56
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00687843
Message ID:
00687856
Vues:
12
This message has been marked as the solution to the initial question of the thread.
may be you are looking for following
'Get the difference in minutes
vMinutes=((hour("02:00 PM")-hour("12:10 PM"))*60) + (minute("02:00 PM")-minute("12:10 PM"))
'get the hour and minutes and convert to time
vTime=cdate(cstr(int(vMinutes/60)) + ":" + cstr(vMinutes mod 60)) 
that will return 1:50:00 AM
you can make a function timeDiff that will take value of your parameters
Best Luck..
Nilesh
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform