src/main/java/seedu/insurancepal/logic/parser/ParserUtil.java
/**
     * Parses a {@code String meetingDateTime} into a {@code Appointment}.
     * Leading and trailing whitespaces will be trimmed.
     *
     * @throws ParseException if the given {@code tag} is invalid.
     */
Parses a  String meetingDateTime into a  Appointment.
Leading and trailing whitespaces will be trimmed.

@throws ParseException if the given  tag is invalid.
Parses a String meetingDateTime into a Appointment . Leading and trailing whitespaces will be trimmed . @throws ParseException if the given tag is invalid .
public static Appointment parseAppointment(String meetingDateTime) throws ParseException {
        requireNonNull(meetingDateTime);
        String trimmedDateTime = meetingDateTime.trim();
        if (!Appointment.isValidMeetingTime(trimmedDateTime)) {
            throw new ParseException(Appointment.MESSAGE_CONSTRAINTS);
        }
        return new Appointment(trimmedDateTime);
    }
public static Appointment parseAppointment ( String meetingDateTime ) throws ParseException { requireNonNull ( meetingDateTime ) ; String trimmedDateTime = meetingDateTime . trim ( ) ; if ( ! Appointment . isValidMeetingTime ( trimmedDateTime ) ) { throw new ParseException ( Appointment . MESSAGE_CONSTRAINTS ) ; } return new Appointment ( trimmedDateTime ) ; }
Parses a {@code String meetingDateTime} into a {@code Appointment}.
Parses a { @code String meetingDateTime } into a { @code Appointment } .