JSFiddle - React, Tailwind, and code Playground

HTML

<span id="spval"></span>

JavaScript

var yourDateObject = new Date();
var ticks = ((yourDateObject.getTime() * 10000) + 621355968000000000);
alert(ticks);
var strDate = "/Date(ticks)/";
alert(strDate);
                var re = /-?\d+/;
                var m = re.exec(strDate);  
                alert(m);
                var date = new Date(parseInt(m[0]));
$("#spval").html(date);