Moved date functions to a separate class named "DateFunctions"