Files
2026-05-30 19:59:39 -03:00

12 lines
320 B
JavaScript

import { toEthiopicDate, toGregorianDate } from "../utils/index.js";
/**
* Start of day
*
* @param {Date} date - The original date
* @returns {Date} The start of the day
*/
export function startOfDay(date) {
const { year, month, day } = toEthiopicDate(date);
return toGregorianDate({ year, month, day });
}