Cron Job and Date formatting algo