Socket
Book a DemoInstallSign in
Socket

@progress/kendo-date-math

Package Overview
Dependencies
Maintainers
1
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@progress/kendo-date-math

Kendo UI typescript package exporting functions for Date manipulations

latest
Source
npmnpm
Version
1.5.15
Version published
Weekly downloads
173K
0.58%
Maintainers
1
Weekly downloads
 
Created

What is @progress/kendo-date-math?

@progress/kendo-date-math is a JavaScript library that provides utilities for date and time manipulation. It is part of the Kendo UI suite and offers a range of functionalities for working with dates, including parsing, formatting, and performing arithmetic operations.

What are @progress/kendo-date-math's main functionalities?

Date Parsing

This feature allows you to parse a date string into a JavaScript Date object using a specified format.

const { parseDate } = require('@progress/kendo-date-math');
const date = parseDate('2023-10-01', 'yyyy-MM-dd');
console.log(date);

Date Formatting

This feature allows you to format a JavaScript Date object into a string using a specified format.

const { formatDate } = require('@progress/kendo-date-math');
const date = new Date(2023, 9, 1);
const formattedDate = formatDate(date, 'yyyy-MM-dd');
console.log(formattedDate);

Date Arithmetic

This feature allows you to perform arithmetic operations on dates, such as adding or subtracting days.

const { addDays } = require('@progress/kendo-date-math');
const date = new Date(2023, 9, 1);
const newDate = addDays(date, 5);
console.log(newDate);

Date Comparison

This feature allows you to compare two dates. It returns a negative number if the first date is earlier, zero if they are equal, and a positive number if the first date is later.

const { compare } = require('@progress/kendo-date-math');
const date1 = new Date(2023, 9, 1);
const date2 = new Date(2023, 9, 5);
const comparison = compare(date1, date2);
console.log(comparison);

Other packages similar to @progress/kendo-date-math

Keywords

Kendo UI

FAQs

Package last updated on 11 Aug 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts