I managed to locally diplay the date in the format Apr 7 by inserting this code into the HTML_Templates.pm
sub convert_date {
# ---------------------------------------
my $in = shift;
my %months = qw!1 Jan 2 Feb 3 Mar 4 Apr 5 May 6 Jun 7 Jul 8 Aug 9 Sep 10 Oct 11 Nov 12 Dec!;
my ($year, $mon, $day) = split /-/, $in;
return "$months{int $mon} $day";
}
However, recently I changed the Add_Date field Type to DATETIME. Now the page dispalys Apr 7 10:04:38
If anyone has any ideas on how I can cut the 10:04:38 from dispaying, much appreciated.
Thanks.
sub convert_date {
# ---------------------------------------
my $in = shift;
my %months = qw!1 Jan 2 Feb 3 Mar 4 Apr 5 May 6 Jun 7 Jul 8 Aug 9 Sep 10 Oct 11 Nov 12 Dec!;
my ($year, $mon, $day) = split /-/, $in;
return "$months{int $mon} $day";
}
However, recently I changed the Add_Date field Type to DATETIME. Now the page dispalys Apr 7 10:04:38
If anyone has any ideas on how I can cut the 10:04:38 from dispaying, much appreciated.
Thanks.