iso date format to date moment javascript without railway format code example Example: how to get iso date with moment moment().toISOString(); // or format() - see below