[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

Re: Date format when retrieving from the database is wrong



If you are getting 2077 here it is because your $date variable says 2077.  
Check to see where $date is set.

- Mark


-----Original Message-----
From: Naiyanad Ohpanayikool [mailto:naiyanad.ohpanayikool@ACCENTURE.COM]
Sent: Tuesday, July 10, 2001 2:50 AM
To: SQR-USERS@list.iex.net
Subject: Date format when retrieving from the database is wrong


The date format which is kept in the database is YYYY i.e. 1977.

But when I code SQR to retrieve the date field, and print out on the
report, using

print $date () Edit 'DD/MM/YYYY'

The result come out on the report is 2077, not 1977. How can I set SQR to
know that the date is in year 19xx not 20xx?

BRIO Report Builder 6.1.3
SQR 6.0
ORACLE 8i
Windows NT 4.0

Best regards,
Nai
______________________________
Naiyanad Ohpanayikool
Microsoft Solution Organisation, Accenture Bangkok
Tel: +662 636-1616


This message is for the designated recipient only and may contain
privileged or confidential information.  If you have received it in error,
please notify the sender immediately and delete the original.  Any other
use of the email by you is prohibited.

Visit our website at http://www.ubswarburg.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.