@genexus/web-standard-functions
Version:
GeneXus JavaScript standard functions library for web generators
16 lines • 394 B
JavaScript
import { TtoC } from "../datetime/TtoC";
import { isEmpty } from "./isEmpty";
export const toString = (targetDate, dateFormat) => {
if (!dateFormat) {
dateFormat = "MDY";
}
let ret = "";
if (isEmpty(targetDate)) {
ret = " / / ";
}
else {
ret = TtoC(targetDate, 8, 0, dateFormat, null);
}
return ret;
};
//# sourceMappingURL=DtoC.js.map