Hi everyone....I'm using vb.net as my front end and SQL Server as the back end.I would like to get a pop up in my GUI which results from the comparison of dates.Can anyone help me out as to how to compare the present date with another date in SQL Server......thanks in advance.
SQL serverComparing dates in SQL Server
Page 1 of 1
2 Replies - 747 Views - Last Post: 12 December 2008 - 10:08 PM
Replies To: SQL server
#2
Re: SQL server
Posted 12 December 2008 - 06:07 AM
Well, there are two different ways to do this. You can use
or
Now() will bring in the date/timestamp where as Date() will only bring in the year/month/day values.
Where Now()=db.datefield
or
Where Date()=db.datefield
Now() will bring in the date/timestamp where as Date() will only bring in the year/month/day values.
#3
Re: SQL server
Posted 12 December 2008 - 10:08 PM
Thanks P4L....sorry m very new to dis...can u be more specific as to where to write de code..
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote




|