Please support our MS SQL advertiser: Programming Forums
Views: 4101 | Replies: 5 | Solved
![]() |
•
•
•
•
| |
Use the SQL DATEDIFF function.
DATEDIFF( datapart, date_expression1, date_expression2)
i.e.
Hope that helps
Happy coding
DATEDIFF( datapart, date_expression1, date_expression2)
i.e.
DATEDIFF (year, '1/1/1999', '1/1/2000') would give 1 as a result
Hope that helps
Happy coding
Assistant Manager, Regional Pharmacy Information Systems
TLC Services Website (Under Construction)
Updated : ASP.Net Login Code
TLC Services Website (Under Construction)
Updated : ASP.Net Login Code
Tricky?
And what does Javascript have to do with SQL functions?
The function is simple.... how is it tricky?


And what does Javascript have to do with SQL functions?
The function is simple.... how is it tricky?


•
•
•
•
Originally Posted by Electrohead04
Sounds tricky! Maybe you could adapt a javascript to suit your needs?
Assistant Manager, Regional Pharmacy Information Systems
TLC Services Website (Under Construction)
Updated : ASP.Net Login Code
TLC Services Website (Under Construction)
Updated : ASP.Net Login Code
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)





Hybrid Mode