Skip to content

Instantly share code, notes, and snippets.

@stefek99
Created February 18, 2014 16:15
Show Gist options
  • Save stefek99/9074068 to your computer and use it in GitHub Desktop.
Save stefek99/9074068 to your computer and use it in GitHub Desktop.
Very simple timestamp. Sortable output ```20141181-1392740100138```
var _filename = function() {
var now = new Date();
return now.getFullYear() + ('0' + now.getMonth()+1).slice(-2) + ('0' + now.getDate()+1).slice(-2) + "-" + now.getTime();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment