devextreme
Version:
HTML5 JavaScript Component Suite for Responsive Web Development
20 lines (18 loc) • 556 B
JavaScript
/**
* DevExtreme (esm/viz/translators/datetime_translator.js)
* Version: 24.2.6
* Build date: Mon Mar 17 2025
*
* Copyright (c) 2012 - 2025 Developer Express Inc. ALL RIGHTS RESERVED
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
*/
import dateUtils from "../../core/utils/date";
function parse(value) {
return null !== value ? new Date(value) : value
}
export default {
fromValue: parse,
toValue: parse,
_add: dateUtils.addDateInterval,
convert: dateUtils.dateToMilliseconds
};