Hi eh171 - don't know if this is any help as background info.
SQL date datatype includes time as default - convert it to a string using a format such as 'HH24:MI:SS' (eg. using TO_CHAR() or similar) to see the time.
If you are retrieving a string, you may be missing the (optional) date.
Just a thought.
If I'm completely on the wrong track, can you give an extract of you code ?
Here is an example that should give you what you want. You should use the time zone for your location. I believe that the Date class has been deprecated....but it should still compile.
..........................................................
TimeZone tz = null;
Date now = null;
SimpleDateFormat sdf = null;
String timestamp = null;
tz = TimeZone.getTimeZone("EST"
now = new Date();
sdf = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss"
sdf.setTimeZone(tz);
timestamp = sdf.format(now);
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.