Minor changes for code publication and persistant method to VC
diff --git a/dev/js/src/datepicker.js b/dev/js/src/datepicker.js
index 59a3ec2..8608efe 100644
--- a/dev/js/src/datepicker.js
+++ b/dev/js/src/datepicker.js
@@ -118,6 +118,18 @@
       return this._element;
     },
 
+    /**
+     * Get the current date in string format.
+     */
+    today : function () {
+      var today = new Date();
+      var str = today.getYear() + 1900;
+      var m = today.getMonth() + 1;
+      var d = today.getDate();
+      str += '-' + (m < 10 ? '0' + m : m);
+      str += '-' + (d < 10 ? '0' + d : d);
+      return str;
+    },
 
     /**
      * Increment the year.