5

I have two dates:

10-11-2010 and 17-11-2010

Now i would like to SELECT all rows with the dates between those two.

How can I do that?

1
  • Are you wanting to select from a database? If so, some table structure information might be useful Commented Nov 17, 2010 at 9:52

3 Answers 3

10

its very simple using between in where clause , read more

select * from mytable where date between '10-11-2010' and '17-11-2010'
Sign up to request clarification or add additional context in comments.

Comments

2

Sounds like a SQL question. Try the between condition.

Comments

1

$datefrom=date('Y-m-d'); $dateto=date('Y-m-d');

$sql = 'select * from mytable where depositdate between $datefrom and $dateto';

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.