|
-
Aug 29th, 2005, 08:24 AM
#1
Thread Starter
Fanatic Member
[RESOLVED] SQL Server dates
Hello,
in my web application, i insert use the getDate() function in sql to insert the dates into the database.
They are stored as '2005/07/29 14:16:19'
now i need to select records between 2 dates from the table.
the format the user will select is DD/MM/YYYY
what is the best way to convert this inside my sql statement so that sql server recognises it as yyyy/mm/dd
or do i need to change it in my code?
cheers
Barry
Visual Studio .NET 2008/Visual Studio .NET 2005/Visual Studio .NET 2003
.NET Framework 3.0 2.0 1.1/ASP.Net 3.0 2.0 1.1/Compact Framework 1.0
SQL Server 2005/2000/SQL Server CE 2.0
If you like, rate this post
Compact Framework for Beginners
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|