moment time postgres time format code example Example: moment format datetime postgresql moment().format('YYYY-MM-DD HH:mm:ss')