mingo
Version:
MongoDB query language for in-memory objects
7 lines (6 loc) • 307 B
TypeScript
import { Any, AnyObject, Options } from "../../../types";
/**
* Converts a value to a date. If the value cannot be converted to a date, $toDate errors.
* If the value is null or missing, $toDate returns null.
*/
export declare const $toDate: (obj: AnyObject, expr: Any, options: Options) => Date | null;