function parse(dateString, formatString) {
  const formatter = new DateTimeFormatter(formatString);
  const parts = formatter.parseToParts(dateString);
  return formatter.partsToDate(parts);
}
/**
 * Parse date from string using format string
 * @param dateString Date string
 * @param format Format string
 * @return Parsed date
 */
Parse date from string using format string
@param dateString Date string
@param format Format string
@return Parsed date
Parse date from string using format string @param dateString Date string @param format Format string @return Parsed date
function parse(dateString, formatString) {
  const formatter = new DateTimeFormatter(formatString);
  const parts = formatter.parseToParts(dateString);
  return formatter.partsToDate(parts);
}
function parse ( dateString , formatString ) { const formatter = new DateTimeFormatter ( formatString ) ; const parts = formatter . parseToParts ( dateString ) ; return formatter . partsToDate ( parts ) ; }
Parse date from string using format string
 @param dateString Date string
 @param format Format string
 @return Parsed date
Parse date from string using format string @param dateString Date string @param format Format string @return Parsed date