this.convertJSON_DateTimeTo_datetimeObj = function (jsonDate) {
var date_dd_MM_yyyy = $filter('date')(jsonDate.slice(6, -2), 'medium');
//var dt = new Date(date_dd_MM_yyyy).toLocaleString("en-US", { timeZone: "Asia/Kolkata" });
//var dt = new Date(date_dd_MM_yyyy.split("/").reverse().join("/"));
return date_dd_MM_yyyy;
},
Input Parameter jsonDate = "/Date(1629810881857)/"
In the above code, I want to convert JSON DateTime into DateTime Object where the output timezone is "Asia/Kolkata". code in the comment is that which is already tried by me. It's very helpful for me if any body help me Thanks