Write a function to judge the time difference. I don't know what's wrong. It's always undefined.

Jan.13,2022
In

1.checktime, there is if without else;
2.js. The month is from 0-11


  http://momentjs.cn/

.
Menu