Convert time to sec

Is there a SQL function that could
to convert, let's say, 15 min to 900 sec.

I have a specific need in which I need my
start and end times represented in
number of secs, vs. hh:mm:ss
LVL 1
ivanhAsked:
Who is Participating?
 
samopalConnect With a Mentor Commented:
select datediff(s,StartDate,EndDate) as DifInSec

HTH
0
 
ivanhAuthor Commented:
Ugh, I foregot about the datediff function....

Thanks.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.