zhongweii — 2012-01-12T08:13:14-05:00 — #1
I'm current using Visual Studio 2010 to work on my application. I have encountered a problem regarding calculating the date difference in days using the current date and eventdate column in my database.
This is what I'm going to show the user.
If the text in dropboxlist = recent, events 7 days from current date will be shown in gridview.
I do not know the correct SELECT Statement to use.
Thanks in advance
imaginekitty — 2012-01-12T12:19:14-05:00 — #2
How are you retrieving the records from the database? Straight up ADO or Linq to Sql or EF?
r937 — 2012-01-12T13:57:28-05:00 — #3
also, please confirm you are accessing oracle's mysql database (the forum you posted in)
imaginekitty — 2012-01-12T14:02:26-05:00 — #4
I'd assume MSSQL as this was moved from .NET, possibly mistakenly.
r937 — 2012-01-12T14:09:29-05:00 — #5
then it got moved to the wrong forum
imaginekitty — 2012-01-12T14:18:13-05:00 — #6
I could be wrong though. I see it says MYSQL in the thread title but I don't remember it being specified previously.