Aji
22-05-2004, 04:53/04:53AM
Hi all,
I have a simple problem, I tried it but getting error, still trying to solve but thought will get the help from some experts too.
Database(mysql) date format :yyyy-mm-dd 00:00:00
client site query date is : dd/mm/yyyy
I have seprated the client side date into different portions like (dd) and (mm) and (yyyy). I can get them
My problems
------------------
(1) I want to query between two dates say 21/04/2004 to 23/04/2004 , how to do that ??
(2) I want yyyy-mm-dd 00:00:00 , to seprate month , date , year , time from this format using php, how can I do that, I know its easy but I am not an expert on php and mysql.
I am using the following query, but the problem is with the date format ,
$sql1="select * from TblUsers1,TblUserInfo1 where TblUserInfo1.FldUserID=TblUsers1.FldUserID and (TblUsers1.FldDateSubscribed BETWEEN '$StartDate' AND '$EndDate')";
HELP HELP HELP
Thank
Aji
I have a simple problem, I tried it but getting error, still trying to solve but thought will get the help from some experts too.
Database(mysql) date format :yyyy-mm-dd 00:00:00
client site query date is : dd/mm/yyyy
I have seprated the client side date into different portions like (dd) and (mm) and (yyyy). I can get them
My problems
------------------
(1) I want to query between two dates say 21/04/2004 to 23/04/2004 , how to do that ??
(2) I want yyyy-mm-dd 00:00:00 , to seprate month , date , year , time from this format using php, how can I do that, I know its easy but I am not an expert on php and mysql.
I am using the following query, but the problem is with the date format ,
$sql1="select * from TblUsers1,TblUserInfo1 where TblUserInfo1.FldUserID=TblUsers1.FldUserID and (TblUsers1.FldDateSubscribed BETWEEN '$StartDate' AND '$EndDate')";
HELP HELP HELP
Thank
Aji