The problem is solved by changing the date format from "d/m/Y" to "Y-m-d".The date and time custom filed seems to have problem when the date format is set to "d/m/Y". the strtotime() function seems to only recognise the american date format "m/d/Y" only. so the date is all wrong.Here below is the system info FYI.Thanks a lot.