https://dropcode.ru/thread/kak-sravnit-dve-daty-v-javascript-s-pomoshch-iu-1