MoshiachNow
IS-IT--Management
HI,
What is the fastest way to get the date in format 20060913 ?
Thanks
Long live king Moshiach !
What is the fastest way to get the date in format 20060913 ?
Thanks
Long live king Moshiach !
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
my @dates=localtime();
$dates[5]+=1900;
$dates[4]++;
my $date = sprintf("%0.2d", $dates[5]).sprintf("%0.2d", $dates[4]).sprintf("%0.2d", $dates[3]);
print $date;
use Time::Format qw(time_format);
print time_format ('yyyymmdd');