I need in jQuery/Javascript to display a date (comming from a DatePicker) with more information and depending on language:
The Date I get from the DatePicker displays as : 17-06-2022
I need it to display as (In Danish) : Fredag d. 17 Juni 2022
(In English) : Friday 17th June 2022
My code:
$( document ).ready(function() {
$('#BtnProceed').click(function() {
var date = document.getElementById("ConfirmEndDateHolder").value = EndCalendar.getFormatedDate();
$("#ConfirmEndDateHolder").text(date);
});
});
Can someone help me achive this?