diff --git a/index.js b/index.js
index <HASH>..<HASH> 100644
--- a/index.js
+++ b/index.js
@@ -1,14 +1,16 @@
 'use strict';
 
-/**
- * Module dependences
- */
-
 var dateformat = require('dateformat');
+var typeOf = require('kind-of');
+
+module.exports = function(date, format) {
+  if (typeOf(date) !== 'date') {
+    format = date;
+    date = new Date();
+  }
 
-module.exports = function date(format) {
   if (typeof format !== 'string' || format === 'today') {
     format = 'mmmm dd, yyyy';
   }
-  return dateformat(new Date(), format);
-};
\ No newline at end of file
+  return dateformat(date, format);
+};
support passing an instance of `Date`