[HOWTO] ⏰ Five Ways To Check If A Year Is A Leap Year

Another way to get the day before March is via calculating milliseconds.

1 day = 1 ✕ 1,000 ✕ 60 ✕ 60 ✕ 24 = 86,400,000 (milliseconds)

So use this concept to have method number #3.

1 Like