Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

Re: Changes to Search Routines

Quote Reply
Re: Changes to Search Routines In reply to
The date can be imported into MySQL in MMDDYY format. You need to remove the ':' or change them to a '-'

In the import routine (if it's YY:MM D) then change the last subroutine to:

Code:
sub convert_date {
# ----------------------------------------------
my $in = shift;
my ($year, $mon, $day) = split /:/, $in;
# my %months = qw!Jan 01 Feb 02 Mar 03 Apr 04 May 05 Jun 06 Jul 07 Aug 08 Sep 09 Oct 10 Nov 11 Dec 12!;
# ($day < 10) and ($day = "0" . int $day);
return "$year-$months{$mon}-$day";
}

IF the access data is in any other format, move the $year, $mon and $day variables around to match the input pattern.

This is untested, but should work.

Subject Author Views Date
Thread Changes to Search Routines pugdog 3562 Oct 1, 1999, 5:57 PM
Post Re: Changes to Search Routines
Alex 3496 Oct 2, 1999, 8:57 AM
Post Re: Changes to Search Routines
pugdog 3481 Oct 2, 1999, 1:39 PM
Post Re: Changes to Search Routines
pugdog 3479 Oct 3, 1999, 6:35 AM
Post Re: Changes to Search Routines
dearnet 3480 Oct 3, 1999, 9:55 AM
Post Re: Changes to Search Routines
dearnet 3478 Oct 4, 1999, 7:51 PM
Post Re: Changes to Search Routines
pugdog 3480 Oct 4, 1999, 8:33 PM
Post Re: Changes to Search Routines
dearnet 3471 Oct 5, 1999, 10:55 AM
Post Re: Changes to Search Routines
pugdog 3486 Oct 5, 1999, 1:01 PM
Post Re: Changes to Search Routines
dearnet 3507 Oct 5, 1999, 7:53 PM