@genexus/web-standard-functions
Version:
GeneXus JavaScript standard functions library for web generators
12 lines • 339 B
JavaScript
/**
* Returns a string represantation of a date. dd[/]mm[/]yyyy
* @return string
*/
import { TtoC } from "../datetime/TtoC";
export const toString = (target, targetDate, dateFormat) => {
if (!dateFormat) {
dateFormat = "MDY";
}
return TtoC(targetDate, 8, 0, dateFormat, null);
};
//# sourceMappingURL=toString.js.map