Skip to content

Instantly share code, notes, and snippets.

View jamesgdahl's full-sized avatar
😅
CODE

Jamieson Dahl jamesgdahl

😅
CODE
  • Pepper Esports
  • Perth, Australia
View GitHub Profile
@jamesgdahl
jamesgdahl / RevDate.js
Last active August 27, 2019 18:22 — forked from anonymous/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);