用于从两个日期时间计算分钟的Javascript代码 [英] Javascript code for calculate the minutes from two date times
本文介绍了用于从两个日期时间计算分钟的Javascript代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
尊敬的专家,
我需要一个JavaScript代码来获取两个日期时间之间的差值分钟.
我的意思是,我有两个约会时间,我需要以分钟为单位获取两个约会时间之间的差.
请帮帮我.
谢谢
Dileep
Dear Experts,
I need a javascript code for get the difference minutes from two date times.
i mean, i have two date time and i need to get the difference between two date times in minutes.
Please Help me.
Thanks
Dileep
推荐答案
在此处查看示例;
http://www.htmlgoodies. com/html5/javascript/calculating-the-difference-between-two-dates-in-javascript.html#fbid = SK7XmfH4Kwn [
See the examples here;
http://www.htmlgoodies.com/html5/javascript/calculating-the-difference-between-two-dates-in-javascript.html#fbid=SK7XmfH4Kwn[^]
You just need to change the calculation to make it suitable for returning difference in minutes.
这篇关于用于从两个日期时间计算分钟的Javascript代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文