Calendar control:
https://fullcalendar.io/docs/
https://fullcalendar.io/docs/event_data/events_function/
https://fullcalendar.io/docs/event_data/Event_Object/
https://fullcalendar.io/docs/mouse/eventClick/
<! DOCTYPE html>
Date Time Library:
http://momentjs.com/
Parse, validate, manipulate, and display dates and times in JavaScript.
//format datesmoment (). Format (' MMMM do YYYY, h:mm:ss a '); Moment (). Format (' dddd '); Moment (). Format ("MMM do YY"); Moment (). Format (' YYYY [escaped] YYYY '); Moment (). Format ();//relative Timemoment ("20111031", "YYYYMMDD"). Fromnow (); Moment ("20120620", "YYYYMMDD"). Fromnow (); Moment (). StartOf (' Day '). Fromnow (); Moment (). EndOf (' Day '). Fromnow (); Moment (). StartOf (' Hour '). Fromnow ();//calendar timemoment (). Subtract ( "Days"). Calendar (); Moment (). Subtract (6, ' days '). Calendar (); Moment (). Subtract (3, ' days '). Calendar (); Moment (). Subtract (1, ' Days '). Calendar (); Moment (). Calendar (); Moment (). Add (1, "Days"). Calendar (); Moment (). Add (3, ' days '). Calendar (); Moment (). Add (Ten, ' Days '). Calendar ();//multiple Locale Supportmoment.locale (); Moment (). Format (' LT '); Moment (). Format (' LTS '); Moment (). Format (' l '); moment (). Format (' l '); moment (). Format (' ll '); Moment (). Format (' ll '); Moment (). Format (' LLL '); Moment (). Format (' LLL '); Moment (). Format (' llll '); Moment (). Format (' llll ');
Ps:
Current date Time formatting:
Moment (). Format (' Yyyy-mm-dd HH:mm:ss. SSS ')
ref:http://momentjs.com/docs/#/displaying/
JS very powerful Calendar control fullcalendar.js, date Time library: Moment.js