本文介绍了如何采取StartTime Minues EndTIme的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何才能获取startime分钟结束时间以获得分钟差异?



如果时间是13:00-14:00这样做会导致176400000?

这是正确的时间吗?或不?显示的格式是17640000?

因为我想要分钟并将其设置在这里





  var  dtFrom =  new  日期(); 
var dtTo = new 日期();

var diff = dtTo-dtFrom;









  var  newDate = start.setTime(start.getTime ()+ diff *  60  *  1000 ); 
解决方案

How could i take startime minutes endtime to get minutes difference?

If time is 13:00-14:00 Doing like this results in 176400000?
Is this the right time? Or not? In which format is 17640000 displayed in?
Because i want to fint out the minutes and set it over here


var dtFrom= new Date();
var dtTo= new Date();

var diff= dtTo-dtFrom;





var newDate = start.setTime(start.getTime()+ diff * 60 * 1000);
解决方案


这篇关于如何采取StartTime Minues EndTIme的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-18 15:35