Skip to content

Instantly share code, notes, and snippets.

@A
Created March 3, 2014 12:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save A/9323986 to your computer and use it in GitHub Desktop.
Save A/9323986 to your computer and use it in GitHub Desktop.
Logger.prototype.getDate = function () {
var date = new Date();
return [
[
date.getFullYear(),
date.getMonth() + 1,
date.getDate()
].join('.'),
[
date.getHours(),
date.getMinutes()
].join(':')
].join(' ');
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment