UNPKG

@genexus/web-standard-functions

Version:

GeneXus JavaScript standard functions library for web generators

10 lines 338 B
/** * To return a Date data type corresponding to a given DateTime data type. * @param {GxDatetime} dateFrom * @return GxDate */ import { GxDate } from "../types/gxdate"; export const toDate = (dateFrom) => { return new GxDate(dateFrom.getFullYear(), dateFrom.getMonth(), dateFrom.getDate()); }; //# sourceMappingURL=toDate.js.map