JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.18.1/moment.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment-timezone/0.5.7/moment-timezone-with-data-2010-2020.min.js"></script>
<div id="utc-time">09/02/2021 12:40:35 PM</div>
<div id="cst-time"></div>
<div id="aus-time"></div>
JavaScript
var dt = document.getElementById("utc-time").innerHTML;
var m = moment.utc(dt, "DD-MM-YYYY h:mm:ss A"); // parse input as UTC
console.log(m.clone().local().format("DD-MM-YYYY h:mm:ss A")); // local time
document.getElementById("utc-time").innerHTML = m.clone().local().format("DD-MM-YYYY h:mm:ss A (Z)");
var tz = 'America/New_York'; // timezone value, you can use moment.tz.guess() for automatic detection
document.getElementById("cst-time").innerHTML = m.clone().tz(tz).format("DD-MM-YYYY h:mm:ss A (Z)");
tz = 'Australia/Perth'; // test another timezone
document.getElementById("aus-time").innerHTML = m.clone().tz(tz).format("DD-MM-YYYY h:mm:ss A (Z)");