Commit d43087b8 by Manzar Hussain

latest update section

parent e37edfa5
......@@ -325,6 +325,20 @@
{
$('#nse').parent('li').removeClass('down');
}
let unix_timestamp = 1611734076
// Create a new JavaScript Date object based on the timestamp
// multiplied by 1000 so that the argument is in milliseconds, not seconds.
var date = new Date(unix_timestamp * 1000);
var date = date.getDate();
var months = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
var month = date.getMonth();
var year = date.getFullYear();
var full_year = date+" "+months[month]+" "+year;
$('#latest_update').text("Latest updated on " + full_year);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment