Prints#!/usr/bin/perl use strict; use warnings; use 5.014; use Date::Simple qw/ date today /; my $dow = date('2002-02-21'); say $dow->day_of_week, ' ', $dow->strftime("%A"); $dow = today; say $dow->day_of_week, ' ', $dow->strftime("%A");
4 Thursday 1 Monday
In reply to Re: Get day of week from current date
by Cristoforo
in thread Get day of week from current date
by gavrilo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |