Click to See Complete Forum and Search --> : sql*plus or pl/sql question


bradleyc
October 23rd, 2005, 09:04 PM
How would you calculate the difference between two dates?

bradleyc
October 23rd, 2005, 09:25 PM
Apparently i should use DATEDIFF ... how do i use DATEDIFF?

Ejaz
October 24th, 2005, 01:02 AM
DateDiff Function (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/vsfctdatediff.asp)

trends
October 24th, 2005, 01:38 AM
hi ,

try this.

datediff( 'mm', d1, d2 ).where mm is month.for date you give dd.ok