Here is table images which is given below
My Query is give below,
$DB2->query("SELECT CHECKINOUT.USERID,USERINFO.CardNo FROM CHECKINOUT INNER JOIN USERINFO ON CHECKINOUT.USERID = USERINFO.USERID WHERE CHECKTIME BETWEEN '$start_date' AND '$tommorow' AND USERINFO.CardNo <> NULL")
I want to do query in ODBC Like below
$DB2->query("SELECT CHECKINOUT.USERID,USERINFO.CardNo FROM CHECKINOUT INNER JOIN USERINFO ON CHECKINOUT.USERID = USERINFO.USERID WHERE format(CHECKTIME, 'dd/mm/yyyy') BETWEEN '$start_date' AND '$tommorow' AND USERINFO.CardNo <> NULL")
But The Query for ODBC it is not work perfectly, it has come all date data with date difference data.
How to make perfect query in ODBC FOR MS ACCESS Database.
Please give me any solution.