formatDate, support momentjs