Results 1 to 3 of 3

Thread: Date conversion

  1. #1
    Join Date
    Jan 2004
    Posts
    67

    Unanswered: Date conversion

    I have a column in the database which is number datatype.
    the values in the column are like this

    20041113
    20041212

    I want to convert this to date format and display it

    this column is a not null column

    Please help

    thanks
    shankar

  2. #2
    Join Date
    Aug 2003
    Location
    Where the Surf Meets the Turf @Del Mar, CA
    Posts
    7,776
    Provided Answers: 1
    use TO_CHAR & TO_DATE functions
    You can lead some folks to knowledge, but you can not make them think.
    The average person thinks he's above average!
    For most folks, they don't know, what they don't know.
    Good judgement comes from experience. Experience comes from bad judgement.

  3. #3
    Join Date
    Oct 2003
    Location
    Slovakia
    Posts
    482
    Originally posted by anacedent
    use TO_CHAR & TO_DATE functions
    I your case is solution as following:

    to_date(to_char(column), 'YYYYMMDD')

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •