Help for this page

Select Code to Download


  1. or download this
    my $sth=$dbh->prepare(
              "SELECT DATE_FORMAT(NOW(), '%M %D, %Y')");
    my $rv=$sth->execute;
    my ($date) = $sth->fetchrow_array; $sth->finish;
    
  2. or download this
    use POSIX qw( strftime );
    my $date =  strftime "%B %d, %Y", localtime;