By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,959 Members | 1,139 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,959 IT Pros & Developers. It's quick & easy.

Selecting date and time

100+
P: 112
I have a problem with running my query

I want to filter records from two different dates.

I am using text box enter dates. Start date has not problem. but enddate it select with midnight(00:00:000) format. But i want to select date with (23.59.997) or selected date + add one day.
Jan 31 '08 #1
Share this Question
Share on Google+
4 Replies


debasisdas
Expert 5K+
P: 8,127
It is better to use dtpicker control for selecting the dates .

Format the dates to proper format before passing to sql query.
Jan 31 '08 #2

daniel aristidou
100+
P: 491
I am using text box enter dates. Start date has not problem. but enddate it select with midnight(00:00:000) format. But i want to select date with (23.59.997) or selected date + add one day.
You might want to try the Adddate....function it allows you to add a value to the time you specify
Jan 31 '08 #3

Expert 5K+
P: 8,434
I think you mean the DateAdd() function.
Feb 1 '08 #4

daniel aristidou
100+
P: 491
I think you mean the DateAdd() function.
Ohhh..so sorry...my mistake..Please forgive me..
Feb 1 '08 #5

Post your reply

Sign in to post your reply or Sign up for a free account.