Formatting

This commit is contained in:
Pranav Nachanekar 2019-09-09 16:36:01 +05:30
parent 5945144c08
commit 20c7c290fa

View File

@ -156,10 +156,8 @@ function setup_details_page(){
let page2 = document.getElementById('enter-details');
page1.style.display = 'none';
page2.style.display = 'block';
let date_container = document.getElementsByClassName('date-span')[0];
let time_container = document.getElementsByClassName('time-span')[0];
date_container.innerHTML = new Date(window.selected_date).toLocaleDateString();
time_container.innerHTML = moment(window.selected_time,"HH:mm:ss").format("LT");
}