refactored createappointments view WITH formatted today string as default value