I have made a time/date script but I am unsure how I can reduce the string to display only AEDT. I have seen lots of time/date converters but they all seem to apply to static time. not a live update.
From: SAT NOV 28 2020 14:54:16 GMT+1100 (AUSTRALIAN EASTERN DAYLIGHT TIME)
To: SAT NOV 28 2020 14:54:16 AEDT.
see my code..
<script type="text/javascript">
function display_c(){
var refresh=1000; // Refresh rate in milli seconds
mytime=setTimeout('display_ct()',refresh)
}
function display_ct() {
var x = new Date()
document.getElementById('ct').innerHTML = x;
display_c();
}
<span id='ct'></span>