Adding new Date utility function