I was wondering how do you countdown to a given date, like for and enevnt or something.
Let's say you know the target date is let's say Christmas and you have the current date, how do I calculate how many days are between them?

Recommended Answers

All 2 Replies

select DATEDIFF(now(), '2008-12-25)
commented: Great!!! (^ - ^) +1
select DATEDIFF(now(), '2008-12-25)

Perfect!!! Thanks!!! (^ - ^)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.