daily pastebin goal
8%
SHARE
TWEET

Untitled

a guest Jul 20th, 2018 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // sample render to used in handsontable
  2.  //need moment.js
  3.  function dateRenderer(instance, td, row, col, prop, value, cellProperties) {
  4.         Handsontable.renderers.TextRenderer.apply(this, arguments);
  5.         if (value != null) {
  6.             if (value!=null) {
  7.                 var str = moment(value).format("MM/DD/YYYY h:hh A");
  8.                 td.innerHTML = str;
  9.             }
  10.         }    
  11.     };
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