Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Timespan
Message
 
 
To
05/06/2006 16:18:44
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Environment versions
SQL Server:
SQL Server 2000
Miscellaneous
Thread ID:
01127202
Message ID:
01127224
Views:
10
This message has been marked as the solution to the initial question of the thread.
Mike,

Use the datediff() function
declare @t1 datetime, @t2 datetime
set @t1 = getdate()
set @t2 = getdate() + 10 && 10 days from now

select datediff( s, @t1, @t2 ) diffinseconds, datediff( mi, @t1, @t2 ) diffinminutes
>I have two datetime fields, both with just times. I am trying to create a view that shows the timespan of time1 to time2. Any advice?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform