123456789 |
- export function isTime(time1,time2){
- var time = Date.parse( new Date());
- var date1 = Date.parse(new Date(time1.replace(/-/g, '/')));
- var date2 = Date.parse(new Date(time2.replace(/-/g, '/')));
- if (date1<time&&date2>time) {
- return true;
- };
- return false;
- }
|