-1

How to tell if a date is between two other dates in angular 2

I need to check a date which is in between the start date and the end date how can i check in angular 2?

Achu
  • 3
  • 2

1 Answers1

0

I really recommend to use moment.js (https://momentjs.com), it makes validation and calculation of dates much easier. It has a built-in query method isBetween: https://momentjs.com/docs/#/query/is-between/

mbnx
  • 912
  • 5
  • 11