Skip to content

Instantly share code, notes, and snippets.

Avatar
😅
CODE

James Dahl jamesgdahl

😅
CODE
  • Nautilus Digital
  • Vancouver
View GitHub Profile
View RevDate.js
"use strict";
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
var RevDate = function RevDate(dateparse) {
_classCallCheck(this, RevDate);
var moment = new Date();
if (typeof dateparse !== 'undefined') {
moment = new Date(dateparse);