converting timestamp to date

Reply

Join Date: Aug 2008
Posts: 24
Reputation: balakrishnan.kb is an unknown quantity at this point 
Solved Threads: 0
balakrishnan.kb balakrishnan.kb is offline Offline
Newbie Poster

converting timestamp to date

 
0
  #1
Sep 17th, 2008
hi
how to convert timestamps to date in oracle, and please give me example sql statements

help me


thanks
bala
Reply With Quote Quick reply to this message  
Join Date: Feb 2007
Posts: 2,110
Reputation: debasisdas will become famous soon enough debasisdas will become famous soon enough 
Solved Threads: 128
debasisdas's Avatar
debasisdas debasisdas is offline Offline
Postaholic

Re: converting timestamp to date

 
0
  #2
Sep 19th, 2008
time stamp contains date as well . you need to trim the timestamp containing both date and time information to get only the date part.
Share your Knowledge.
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 11
Reputation: yogesh_vaidya12 is an unknown quantity at this point 
Solved Threads: 1
yogesh_vaidya12 yogesh_vaidya12 is offline Offline
Newbie Poster

Re: converting timestamp to date

 
0
  #3
Sep 23rd, 2008
Use To_Char function to get date in Desired Format.
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 24
Reputation: balakrishnan.kb is an unknown quantity at this point 
Solved Threads: 0
balakrishnan.kb balakrishnan.kb is offline Offline
Newbie Poster

Re: converting timestamp to date

 
0
  #4
Oct 1st, 2008
k thanks, how to to trim the time stamp?help me
Reply With Quote Quick reply to this message  
Join Date: Feb 2007
Posts: 2,110
Reputation: debasisdas will become famous soon enough debasisdas will become famous soon enough 
Solved Threads: 128
debasisdas's Avatar
debasisdas debasisdas is offline Offline
Postaholic

Re: converting timestamp to date

 
0
  #5
Oct 2nd, 2008
you need to use TRUNC() to remove the time information from the date field.
Share your Knowledge.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC