Categories
CMS Joomla Mastering Development

How to compare current date to article created date?

I need a code to compare if current date and time is greater than article created time of joomla. I have this example code: function CompareDate() { // new Date(Year, Month, Date, Hr, Min, Sec); var dateOne = new Date(2020, 03, 20, 11, 00, 00); var dateTwo = new Date(2020, 03, 20, 12, 00, 00); […]