Convert-Razor-to-date-in-Javascript Use:- this function is used to convert razor to date in javascript. you need to pass date in function parameter.