I am taking yyyy,mm,dd from difrent select boxes.
while i concatinate this using following code.
$dob=$doby.$dob m.$dobd; /it gives as yyyymmdd/
but i want it in format yyyy-mm-dd
i have tried this
$dob=implode('-', array($doby, $dobm, $dobd));but it subtracts 3 numbers(ie. 2000-10-10 = 2080)
I want it as 2000-10-10 to insert into DataBase
while i concatinate this using following code.
$dob=$doby.$dob m.$dobd; /it gives as yyyymmdd/
but i want it in format yyyy-mm-dd
i have tried this
$dob=implode('-', array($doby, $dobm, $dobd));but it subtracts 3 numbers(ie. 2000-10-10 = 2080)
I want it as 2000-10-10 to insert into DataBase
Comment