|
-
Mar 31st, 2005, 09:45 AM
#1
Fanatic Member
Re: How dataset save to sqlce?
Hi
try using date.Today.Day to get todays Day.
or if you are using full dates you can compare the no of days using sqlce built in function of DATEDIFF (d, OrderDate, ShippedDate)
Dim mycommand1 As New SqlCeCommand("select * from Appointments where Day > " & date.today.today & "", cn)
also execute the command as scalar so it will return you a value if you are using the datediff
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
|