Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@progress/kendo-date-math

Package Overview
Dependencies
Maintainers
0
Versions
77
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

  • 1.5.14
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
178K
decreased by-1.7%
Maintainers
0
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

FAQs

Package last updated on 10 Oct 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc