Advertisement

11.09.2007 at 03:44PM PST, ID: 22951481
[x]
Attachment Details

Sql Datediff Format

Asked by jimseiwert in SQL Query Syntax, MS SQL Server, SQL Server 2005

Tags: datediff, sql, format

I am trying to format a datediff in a paticular format. I have a start date and end date and I am using datediff("D",startdate, enddate) which return only a number of days which is what it was intended to do.

What I need to see is a date diff format in DD:HH:MM just like that so for example it would like like 04:03:18

Thank you in advance.Start Free Trial
[+][-]11.09.2007 at 03:56PM PST, ID: 20254048

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.09.2007 at 03:59PM PST, ID: 20254053

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.09.2007 at 04:03PM PST, ID: 20254061

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.09.2007 at 04:06PM PST, ID: 20254067

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11.09.2007 at 04:09PM PST, ID: 20254083

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: SQL Query Syntax, MS SQL Server, SQL Server 2005
Tags: datediff, sql, format
Sign Up Now!
Solution Provided By: imitchie
Participating Experts: 4
Solution Grade: A
 
 
[+][-]11.09.2007 at 04:14PM PST, ID: 20254095

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628