Can I get formatted datetime from getState function?

I have a confirm button on my lightbox when it’s clicked it will perform an ajax query and insert something into the database. I need the datetime in mysql format to post the confirmed datetime to another table, but getstate.min_date gives an output like this: Mon Jun 20 2016 00:00:00 GMT-0400 (Eastern Daylight Time)
php strptime stuff is not available on my platform (windows) and DateTime gives me an error because of having two timezones, is there any way I can I get the date from an event state in the right format ("%Y-%m-%d %H:%i")?

scheduler.attachEvent(“onLightboxButton”, function(button_id, node, e){
if(button_id == “confirm_btn”){
var apt_num = “<?php echo $apt_num ?>”;
console.log(scheduler.getState().min_date);
confirmAppointment(scheduler.getState().select_id, apt_num, scheduler.getState().min_date);
}

Hello,

You can use next way:

var date = scheduler.getState().min_date;
var formatFunc = scheduler.date.date_to_str("%Y-%m-%d %H:%i");
var format_date = formatFunc(date); 

docs.dhtmlx.com/scheduler/date_formats.html
docs.dhtmlx.com/scheduler/settings_format.html