UNPKG

@telerik/kendo-intl

Version:

A package exporting functions for date and number parsing and formatting

9 lines (7 loc) 253 B
export default function parseRangeDate(value) { const parts = value.split('-'); const year = parseInt(parts[0], 10); const month = parseInt(parts[1], 10) - 1; const day = parseInt(parts[2], 10); return new Date(year, month, day); }