is there any funtion exists in javascript like c# function datatime.specifykind

is there any funtion exists in javascript like c# function datatime.specifykind

DateTime.SpecifyKind(Convert.ToDateTime(filterParam.dtFrom).Date, DateTimeKind.Utc);

well the main question is.

i get datetime in json string "2019-01-01T00:00:000Z"

i do not want to remove Z out of it and i want to show it on page with ddMMyyyy formate, when i use moment(day).format(timeFormat);.

this reduces my date by one as my local is America. so please suggest how should I format.