Skip to content

Instantly share code, notes, and snippets.

@dheaney
Last active December 19, 2015 20:08
Show Gist options
  • Select an option

  • Save dheaney/6011031 to your computer and use it in GitHub Desktop.

Select an option

Save dheaney/6011031 to your computer and use it in GitHub Desktop.
date = new Date().toString().split ' '
console.log date[0] + ', ' + date[1] + ' ' + date[2] + ' ' + date[3] + ' ' + date[4] + ' '+ '-0600'
# => Tue, Jul 16 2013 11:48:42 -0600
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment