Socket
Book a DemoInstallSign in
Socket

@mark-3/helpers-date-is-on-same-day

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@mark-3/helpers-date-is-on-same-day

Checks if two Date objects fall within the same day.

latest
npmnpm
Version
0.0.4
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

isOnSameDay

A lightweight utility to check whether two JavaScript Date objects are in the same calendar day.

Install

npm install @mark-3/helpers-date-is-on-same-day

Usage

import isOnSameDay from '@mark-3/helpers-date-is-on-same-day';

const result = isOnSameDay( new Date( '2022-01-01' ), new Date( '2022-12-31' ));
// false

License

MIT

Keywords

date

FAQs

Package last updated on 27 Jul 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