Skip to main content
Very Popular
Go to Latest
function differenceInMilliseconds
import { differenceInMilliseconds } from "https://deno.land/x/date_fns@v2.15.0/index.js";

Examples

// How many milliseconds are between // 2 July 2014 12:30:20.600 and 2 July 2014 12:30:21.700? var result = differenceInMilliseconds( new Date(2014, 6, 2, 12, 30, 21, 700), new Date(2014, 6, 2, 12, 30, 20, 600) ) //=> 1100

Parameters

dirtyDateLeft
  • the later date
dirtyDateRight
  • the earlier date