- CREATE DEFINER=`root`@`localhost` PROCEDURE `sp_select_reg`(In date1 varchar(50),In date2 varchar(50))
- BEGIN
- select * from `reg` where date > cast(date1 as datetime) and date < cast(vvsysdate as date2) ORDER BY date ASC;
- END
Two Dates Different values retrive
date values does't retrived correct vales from database .
my date format is dd/MM/yyyy
how can i solve this problem ?. please help me.

Prasanth RadhakrishnanRank #2,247 · 627 reputationPosted Apr 5, 2016, 2:22 AM EDT
Rajeesh MenothRank #118 · 18.4K reputationPosted Apr 5, 2016, 2:33 AM EDT
Prakash TripathiRank #72 · 25.3K reputationPosted Apr 6, 2016, 8:17 PM EDT
STR_TO_DATE. You may follow more at below SO link.