Skip to content

Instantly share code, notes, and snippets.

@joyrexus
Last active December 15, 2015 05:19
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 joyrexus/5208198 to your computer and use it in GitHub Desktop.
Save joyrexus/5208198 to your computer and use it in GitHub Desktop.
Print today's date (M-D-Y)
console.log new Date().toString().split(' ')[1..3].join('-') # M-D-Y
#!/usr/bin/perl -w
use Date::Funcs;
my $d = Date::Funcs->new();
print $d->today(), "\n";
date "+%m-%d-%y"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment