Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // 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;
- }
- }
- };
Add Comment
Please, Sign In to add comment