Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function dateCustomValue(elem) {
- var localizedDatabaseFormat = BKG.DateTime.localizeFormat($(elem).data('srcformat')),
- sourceDatabaseFormat = BKG.DateTime.getMomentFormat($(elem).data('srcformat')),
- sourceFormat = BKG.DateTime.getMomentFormat(localizedDatabaseFormat);
- if ($(elem).val() === '') {
- return '';
- }
- return window.moment($(elem).val(), sourceFormat).format(sourceDatabaseFormat);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement