MCPcopy
hub / github.com/palantir/blueprint / parseDate

Method parseDate

packages/datetime/src/dateRangeInput.tsx:996–1003  ·  view source on GitHub ↗
(dateString: string)

Source from the content-addressed store, hash-verified

994 }
995
996 private parseDate(dateString: string): Date | null {
997 if (dateString === this.props.outOfRangeMessage || dateString === this.props.invalidDateMessage) {
998 return null;
999 }
1000 const { locale, parseDate } = this.props;
1001 const newDate = parseDate(dateString, locale);
1002 return newDate === false ? new Date(undefined) : newDate;
1003 }
1004
1005 private formatDate(date: Date): string {
1006 if (!this.isDateValidAndInRange(date)) {

Callers 1

DateRangeInputClass · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected