moment.js date comparison - day before today or two days after today?

后端 未结 2 1787
余生分开走
余生分开走 2021-01-04 17:46

I\'m struggling with a moment.js \"query\" to figure out if a date (ex : 12/10/2014) is within the range of the day before \"today\", or two days after \"today\".

Be

2条回答
  •  再見小時候
    2021-01-04 18:34

    Using moment, you can do the following...

    
    
    

提交回复
热议问题