Oracle Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesOracle Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 5th, 2005, 06:13 AM
hudo hudo is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 97 hudo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 23 m 19 sec
Reputation Power: 6
receive date of format dd.mm.yyyy HH24:MI

I'm going through a displayed table with a loop.
I'm using :SYSTEM.CURRENT_VALUE to receive the value of the actual item
which is appended to the variable mystring of type VARCHAR2(1000)

If there is a date field in the table (e.g.: emp.hiredate),
(the item is in forms of type DATE with the Format Mask: dd.mm.yyyy HH24:MI ),
I receive only the date part. The hours, minutes are always set to 00

How can I hand over the correct hours, minutes to mystring ?

Reply With Quote
  #2  
Old October 31st, 2005, 11:17 AM
patrick.gill's Avatar
patrick.gill patrick.gill is offline
Sleepwalker
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Location: The Tangent Universe
Posts: 386 patrick.gill User rank is Sergeant Major (2000 - 5000 Reputation Level)patrick.gill User rank is Sergeant Major (2000 - 5000 Reputation Level)patrick.gill User rank is Sergeant Major (2000 - 5000 Reputation Level)patrick.gill User rank is Sergeant Major (2000 - 5000 Reputation Level)patrick.gill User rank is Sergeant Major (2000 - 5000 Reputation Level)patrick.gill User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 2 Weeks 3 Days 8 h 36 m 56 sec
Reputation Power: 51
Send a message via Skype to patrick.gill
You mean how do you get the date from Oracle with minutes and hours? If so use SYSDATE.

Reply With Quote
  #3  
Old October 31st, 2005, 02:00 PM
hudo hudo is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 97 hudo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 23 m 19 sec
Reputation Power: 6
Quote:
Originally Posted by patrick.gill
You mean how do you get the date from Oracle with minutes and hours? If so use SYSDATE.

Hello, there is no reference to SYSDATE.

I solved the problem by using DATETIME instead of DATE.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesOracle Development > receive date of format dd.mm.yyyy HH24:MI


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT