The Artima Developer Community
Sponsored Link

Java Answers Forum
Date Problem

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Donald

Posts: 1
Nickname: ericdonald
Registered: Nov, 2003

Date Problem Posted: Nov 19, 2003 3:24 AM
Reply to this message Reply
Advertisement
Hello,

Can anyone help with the following problem that I'm having:

The following sql statement when executed via sql plus returns '26-OCT-03 17:41:29':

SELECT AC_DATE_LOADED FROM AC_ACCOUNTS WHERE TO_CHAR(AC_DATE_LOADED, 'dd-MON-yy hh24:mi:ss') LIKE '26-OCT-03 17:41:29' AND AC_ACCOUNT_NUMBER = '07950N-01355';

However, when I'm executing the same sql via an FLR, the date being picked up by my code is '26-OCT-03 16:41:29' - ie. being reduced by 1 hour.

The variable I'm using to capture the date is of type java.util.Date and I'm displaying the time element via 'varName.toString()'.

Any ideas that you have would be appreciated.

Thanks,
Eric.

Topic: file handling errors Previous Topic   Next Topic Topic: User Authentication

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use