npm npm
Magnify icon
  • All Packages
    • JavaScript
    • Python
    • Go
  • Code Examples
    • JavaScript
    • Python
  • Categories
    • JavaScript - Popular
    • JavaScript - Healthiest
    • Python - Popular
    • Python - Healthiest
  • Developer Tools
    • Vulnerability DB
    • Code Checker
    • Snyk Learn
    • Blog
Sign Up
  1. Advisor
  2. date-and-time
  3. functions
View all date-and-time analysis

Most popular functions for date-and-time

To help you get started, we’ve selected a few date-and-time examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

  • 1

    date-and-time.addDays

    arrow
  • 2

    date-and-time.addHours

    arrow
  • 3

    date-and-time.addMilliseconds

    arrow
  • 4

    date-and-time.addMinutes

    arrow
  • 5

    date-and-time.addMonths

    arrow
  • 6

    date-and-time.addSeconds

    arrow
  • 7

    date-and-time.addYears

    arrow
  • 8

    date-and-time.format

    arrow
  • 9

    date-and-time.isValid

    arrow
  • 10

    date-and-time.parse

    arrow
  • 11

    date-and-time.subtract

    arrow

Product

  • Partners
  • Developers & DevOps Features
  • Enterprise Features
  • Pricing
  • API Status

Resources

  • Vulnerability DB
  • Blog
  • Learn
  • Documentation
  • Snyk API
  • Research
  • FAQs
  • npm packages list
  • JavaScript Code Examples
  • Browse all JavaScript packages

Company

  • About us
  • Customers
  • Jobs at Snyk
  • Legal Terms
  • Privacy
  • Press Kit
  • Events
  • Secure by Design

Connect

  • Book a demo
  • Contact us
  • Support
  • Report a new vuln

Security

  • JavaScript Security
  • Kubernetes Security
  • Container Security
  • Open Source Security
  • Secure SDLC

Find us online

Track our development

Snyk|Open Source Security Platform © 2025 Snyk Ltd.