如何在JavaScript中比较两个日期 [英] How to compare two dates in javascript
本文介绍了如何在JavaScript中比较两个日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我是javascript新手.我想将今天的日期与另一个日期进行比较.该怎么做??
请帮助我...
Hi all,
I am new to javascript. I want to compare todays date with another date. How to do that???
please help me......
推荐答案
这将为您提供帮助
请检查
http://javascript.about.com/library/bltut19.htm [
this will help you
plese check
http://javascript.about.com/library/bltut19.htm[^]
JavaScript中有一个Date对象,可以用于处理日期- ^ ]
我还建议您先在Google上进行搜索,然后再在此处进行查询.例如,请参见此处- ^ ]
请参阅链接.关于这个主题的讨论太多了.
希望对您有所帮助! :thumbsup:
There is a Date Object in JavaScript that can be used to work with dates - JavaScript Date Object[^]
I also suggest you to do a search on Google before you ask queries here. For example see here - Google search - compare two dates Javascript[^]
See the link. There are so many discussion about the subject.
Hope that helps! :thumbsup:
这篇关于如何在JavaScript中比较两个日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文