Skip to main content

Function: parseFromToProps#

โ–ธ parseFromToProps(props: Pick<DayPickerProps, fromYear | toYear | fromDate | toDate | fromMonth | toMonth>): object

Build the fromDate and toDate values, given the fromMonth/toMonth or fromYear/toYear props.

Parameters:#

NameType
propsPick<DayPickerProps, fromYear | toYear | fromDate | toDate | fromMonth | toMonth>

Returns: object

NameType
fromDateDate | undefined
toDateDate | undefined