I want to check if date is not equal to 0000-00-00 00:00:00. How can I check it in javascript?
I checked with date !== null but it is not working.
You can check "0000-00-00 00:00:00" with
Date.parse(date) // NaN
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/parse
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With