Changed date return type to integer from data format