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.
| Author |
Topic |
|
sp3010
Starting Member
8 Posts |
Posted - 2008-05-03 : 03:52:08
|
| I am using SQL Server 2005 Express Edition. One table contains field docdate having format dd/MM/yyyy hh:mm:yyyy. Here hours & mins are also required.I am working on VB6.0. User will input date on form in format 'dd/MM/yyyy'. I just want to check this with SQL Server date considering only dd/MM/yyyy.How to do this? |
|
|
PeterNeo
Constraint Violating Yak Guru
357 Posts |
Posted - 2008-05-03 : 04:36:46
|
| read about CONVERT in Books Online |
 |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2008-05-03 : 06:07:43
|
| use DATEADD(d,DATEDIFF(d,0,yourdatefield),0) to strip off time part before comparison. |
 |
|
|
|
|
|