Format a Date

Last updated Nov 06 2020

window.ftFormatDate(fieldId, format);
This JS function will enable you to format your Date fields with a custom format rather than the default UTC returned from Salesforce.
For example dd/mm/yyyy, mm/dd/yyyy, mm-yyyy .....
ftFormatDate("fld33", "dd/mm/yyyy")
Please use the following link to learn about the supported formats: https://momentjs.com/

CommentsLogin Required
Didn’t find what you were looking for?
Try the following for assistance or Use the Search box.