SHARE
TWEET

Untitled

a guest Mar 20th, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function dateCustomValue(elem) {
  2.   var localizedDatabaseFormat = BKG.DateTime.localizeFormat($(elem).data('srcformat')),
  3.     sourceDatabaseFormat = BKG.DateTime.getMomentFormat($(elem).data('srcformat')),
  4.     sourceFormat = BKG.DateTime.getMomentFormat(localizedDatabaseFormat);
  5.  if ($(elem).val() === '') {
  6.    return '';
  7.  }
  8.   return window.moment($(elem).val(), sourceFormat).format(sourceDatabaseFormat);
  9. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top