i use bigint(10) to save format date in Myphpadmin. but i can't show format d/m/Y in my website. Please! help me. i Use folow:
<?php $sqldate = strtotime($row['ngaysinh']);echo date('d/m/y',$sqldate); ?>
i use bigint(10) to save format date in Myphpadmin. but i can't show format d/m/Y in my website. Please! help me. i Use folow:
<?php $sqldate = strtotime($row['ngaysinh']);echo date('d/m/y',$sqldate); ?>
It sounds like you are using a UNIX time stamp to store the date. As such using strtotime() with an integer will return -1 (it's not a date string) and so what you are actually doing is:
echo date('d/m/y',-1);
which doesn't output anything. Instead, use the following code:
echo date('d/m/y',$row['ngaysinh']);