a PHP LIKE date function of javascript