473,387 Members | 1,619 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Displays date but not time

nabh4u
62
Hi all,

I have problem in displaying time. it only displays date but not time.
i am using
DECODE(PROC_TM,'999999', NULL,PROC_TM) proc_tm
and then
PROC_TME = TO_DATE(C2.PROC_TM, 'HH24MISS')

It only displays date but not the time. what should i do?

And in another procedure i have time displayed but not properly
like 10:40 is displayed as 1040 (10 min and 40 seconds).
what should i do in this?

any advice will be accepted.
thank you all,

nabh4u
Jul 31 '07 #1
9 1665
Dave44
153 100+
Hi all,

I have problem in displaying time. it only displays date but not time.
i am using
DECODE(PROC_TM,'999999', NULL,PROC_TM) proc_tm
and then
PROC_TME = TO_DATE(C2.PROC_TM, 'HH24MISS')

It only displays date but not the time. what should i do?

And in another procedure i have time displayed but not properly
like 10:40 is displayed as 1040 (10 min and 40 seconds).
what should i do in this?

any advice will be accepted.
thank you all,

nabh4u
If you are displaying a date you need to format it with to_char not to_date, the latter is used for turning a string to an oracle date.
Aug 1 '07 #2
If you are displaying a date you need to format it with to_char not to_date, the latter is used for turning a string to an oracle date.

HI friend,

select to_char(sysdate,'HH24:MISS')
from dual


please do like that

Regards
Mihael
Aug 1 '07 #3
nabh4u
62
If you are displaying a date you need to format it with to_char not to_date, the latter is used for turning a string to an oracle date.
I am afraid but the solution you provided to my problem doesnt work. it still displays the same date format but no time is displayed.
what should i do now?
Aug 1 '07 #4
debasisdas
8,127 Expert 4TB
please try the sample code

Expand|Select|Wrap|Line Numbers
  1. select to_char(sysdate,'HH24:MI:SS') from dual
hope that solves your problem.
Aug 2 '07 #5
nabh4u
62
please try the sample code

Expand|Select|Wrap|Line Numbers
  1. select to_char(sysdate,'HH24:MI:SS') from dual
hope that solves your problem.

No..even that doesnt work.
Aug 2 '07 #6
debasisdas
8,127 Expert 4TB
How is that possible ?

Can you kindly post your code for my reference please.
Aug 2 '07 #7
nabh4u
62
How is that possible ?

Can you kindly post your code for myb reference please.
I am sorry i cant provide the code because of company rules. I tried to provide as much information as possible.
i am really very sorry. but thanks for helping me.
Aug 2 '07 #8
debasisdas
8,127 Expert 4TB
Ok ,i can understand the problem.

Better you follow some good books / materials .

wishing you best of luck.
Aug 3 '07 #9
nabh4u
62
Ok ,i can understand the problem.

Better you follow some good books / materials .

wishing you best of luck.
thank you very much for all the support.
Aug 3 '07 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

10
by: robinpg.SHU | last post by:
As title really, does anyone know of (or could write?) a php file which in a directory of .jpg files display the most recent added to that /dir? Can anyone help?
5
by: Kevin | last post by:
I am rather new at Web program so I am starting off with some small stuff, but still having problems. I want to display a message box to the user when they click a button, but the message box...
3
by: Dan | last post by:
Question on how to do this. I'm trying to make a script that has 3 text fields in a form. When a start time is entered in a text field in the form the other 2 fields display the time with a set...
5
by: Dung Ping | last post by:
The following code produces different dates on different browers on my computer. For today on the IE it is: 2005.9.27 which is correct, but on FF is: 105.9.27 which in incorrect. I copied the...
1
by: Sunil Korah | last post by:
Hi, I have a form with just 2 text boxes to get a start date and end date to pass to a query. i have set the format to short date (which is set to "mm/dd/yy" in the regional settings of...
1
by: Chumley Walrus | last post by:
I'm changing an old classic asp script over to asp.net; it displays links corresponding to each day of the week <script runat="server"> Sub Page_Load(s As Object, e As EventArgs) ...
5
by: HarveyP | last post by:
I am using a PHPed version of an HTML file in order to include an onload function to write to a log file. The problem is that large parts of this file display as garbage 9 times out of 10, and...
0
by: letsgetsilly | last post by:
I am populating a datagrid and outputting it to excel. Everything worked well last night, but today excel only displays the content in font color white, which is impossible to see. The data is all...
0
by: Nagel Oxles | last post by:
Customer details are kept in the Customers_table with CompanyName as the PK. Tasks_table has TaskName, RatePerHour, and TaskCode (Two letter code indexed no duplicates) as PK. Jobs_table has...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.