News

toString(date, format = 'YYYY-MM-DD') You should return a string from it. Be careful, though. If the formatted string that you return cannot be correctly parsed by the Date.parse method (or by moment ...