added code to allow for formatted date entry