src/main/java/seedu/insurancepal/model/appointment/Appointment.java
/**
     * Checks whether the string that is supposed to represent a meeting timing is valid.
     *
     * @param meetingDateTime the string to check.
     * @return true if string is parsable, empty or null.
     */
Checks whether the string that is supposed to represent a meeting timing is valid.
@param meetingDateTime the string to check.
@return true if string is parsable, empty or null.
Checks whether the string that is supposed to represent a meeting timing is valid . @param meetingDateTime the string to check . @return true if string is parsable empty or null .
public static boolean isValidMeetingTime(String meetingDateTime) {
        if (meetingDateTime.equals("")) {
            return true;
        }
        try {
            LocalDateTime.parse(convertMonthToFormat(meetingDateTime), FORMATTER);
            return true;
        } catch (DateTimeParseException e) {
            return false;
        } catch (StringIndexOutOfBoundsException error) {
            return false;
        }
    }
public static boolean isValidMeetingTime ( String meetingDateTime ) { if ( meetingDateTime . equals ( "" ) ) { return true ; } try { LocalDateTime . parse ( convertMonthToFormat ( meetingDateTime ) , FORMATTER ) ; return true ; } catch ( DateTimeParseException e ) { return false ; } catch ( StringIndexOutOfBoundsException error ) { return false ; } }
Checks whether the string that is supposed to represent a meeting timing is valid.
Checks whether the string that is supposed to represent a meeting timing is valid .