i want to make some correction about the alert being displayed in my
"alert (<? echo $WrkHrsNew['ActDate']?>);" in my database date "2004-11-21" the alert is 1972 and "2004-11-22" the alert is 1971 and "2004-11-23" the alert is "1970". I've noticed 2004-11-21 is treated as 2004 subtracted by 11 then subtracted by 21 is equal to 1972 then same with other dates. it should be
alert ("<? echo $WrkHrsNew['ActDate']?>"); so that it will display the date in my database. Does this mean in my code <? if (
$WrkHrsNew['ActDate'] contains same date format from my database? or do i have to change it from
and also the
alert (<? echo $DateLogtemp ?>); displays nothing on it. I don't why it displays or alerts nothing on it? Hope you understand what's my problem