moment(timeStamp).format("DD-MM-YYYY, h:mm:ss a") code example Example: moment format date dd/mm/yyyy moment(new Date()).format("DD/MM/YYYY")