Last active
December 15, 2015 05:19
-
-
Save joyrexus/5208198 to your computer and use it in GitHub Desktop.
Print today's date (M-D-Y)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log new Date().toString().split(' ')[1..3].join('-') # M-D-Y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl -w | |
use Date::Funcs; | |
my $d = Date::Funcs->new(); | |
print $d->today(), "\n"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
date "+%m-%d-%y" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment