This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // sample render to used in handsontable | |
| //need moment.js | |
| function dateRenderer(instance, td, row, col, prop, value, cellProperties) { | |
| Handsontable.renderers.TextRenderer.apply(this, arguments); | |
| if (value != null) { | |
| if (value!=null) { | |
| var str = moment(value).format("MM/DD/YYYY h:hh A"); | |
| td.innerHTML = str; | |
| } | |
| } |