Change date format to check student availability