moment js data format for postgresql code example Example: moment format datetime postgresql moment().format('YYYY-MM-DD HH:mm:ss')