UNPKG

@progress/kendo-charts

Version:

Kendo UI platform-independent Charts library

13 lines (11 loc) 301 B
import { isString } from '../common'; import toDate from './to-date'; export default function parseDate(intlService, date) { let result; if (isString(date)) { result = intlService.parseDate(date) || toDate(date); } else { result = toDate(date); } return result; }