I don't know which columns are dates (so, I'll assume those prefixed with dt are). For your test script, you would have to change from
tomy $sth = $dbh->prepare_cached( "SELECT * FROM ReleaseDates" );
for the cgi:my $sth = $dbh->prepare_cached( "SELECT convert( char(8), dtXXX, 101 ) FROM ReleaseDates" );
tomy $sth =$connection->prepare( "SELECT Release, dtTargetFeatureFreeze, dtTargetCCRB, dtTargetReleaseFromDev, dtTargetRTM, TwikiURL, ReleaseNum, Display FROM ReleaseDates WHERE (Display = 1)" );
my $sth =$connection->prepare( "SELECT Release, convert( char(8), dtTargetFeatureFreeze, 1), convert( char(8), dtTargetCCRB, 1), convert( char(8), dtTargetReleaseFromDev, 1), convert( char(8), dtTargetRTM, 1), TwikiURL, ReleaseNum, Display FROM ReleaseDates WHERE (Display = 1)" );
update: BTW, setting dateformat only affects inputting dates.
In reply to Re^3: Using DBI::Sybase having problem with Date format
by derby
in thread Using DBI::Sybase having problem with Date format
by yoyomonkey
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |