Skip to content

dateGreaterThan ​

dateGreaterThan() tests whether a Date (wrapped) is strictly after a threshold (Date wrapped or DDate.TheDate). Supports the curried version.

Interactive example ​

Syntax ​

Classic signature ​

typescript
function dateGreaterThan(
	primitive: Date, 
	threshold: Date | TheDate
): boolean

Curried signature ​

typescript
function dateGreaterThan(
	threshold: Date | TheDate
): (primitive: Date) => boolean

Parameters ​

  • primitive : wrapped Date (classic signature only).
  • threshold : comparison threshold.

Return value ​

true if primitive > threshold, otherwise false.

See also ​

Released under the MIT license.