A Windows XP help forum. PCbanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » PCbanter forum » Microsoft Windows XP » Microsoft Messenger
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Calculating Time when date and times are separate



 
 
Thread Tools Display Modes
  #1  
Old January 13th 04, 05:45 PM
Jonathan Kay [MVP]
external usenet poster
 
Posts: n/a
Default Calculating Time when date and times are separate

Greetings,

This is actually the Windows Messenger newsgroup, so you'll need to repost this in the
appropriate newsgroup and in the language that you're programming in.

However, as a hint, if you're using Visual Basic.NET or VBScript, you can use the DateDiff
function for this:
http://msdn.microsoft.com/library/en...ctdatediff.asp
____________________________________________
Jonathan Kay
Microsoft MVP - Windows Messenger/MSN Messenger
Associate Expert
http://www.microsoft.com/windowsxp/expertzone/
Messenger Resources - http://messenger.jonathankay.com

"brimil" wrote in message
news
how in a query do i calculate the time for example:
1/12/03 21:30 start time
1/13/03 01:00 end time

the result I want to return in the above scenario would be 3:30 hours or 3.5 hours...I have
the date and time fields separated.....
Thanx in advance


Ads
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off






All times are GMT +1. The time now is 04:49 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.