Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

startOfYesterday

import { startOfYesterday } from "https://esm.sh/v135/date-fns@3.6.0/index.d.mts";
@example
// If today is 6 October 2014:
const result = startOfYesterday()
//=> Sun Oct 5 2014 00:00:00
function startOfYesterday(): Date;
§
startOfYesterday(): Date
[src]

§Return Type

§
Date
[src]

The start of yesterday