Here, we are finding the number of milliseconds between the given date and midnight of January 1, 1970.