Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Fractional Part of date difference

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2004-12-14 : 08:12:56
Ahamed Tharik writes "Hi ,

i need the fractional part of the difference beween two dates

select datediff(month,'02/02/2004','02/05/2004')

Result 0


i need the fractional part for the above query.

can anyone help me."

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2004-12-14 : 08:14:53
you need:

set dateformat dmy
select datediff(month,'02/02/2004','02/05/2004')

Go with the flow & have fun! Else fight the flow
Go to Top of Page
   

- Advertisement -