Results 1 to 5 of 5

Thread: datetime syntax

  1. #1
    Join Date
    Sep 2005
    Posts
    20

    Unanswered: datetime syntax

    Hi ,

    I want to display '20060228' as '28 FEB 2006 10AM' . The field is of datatype datetime.

    can any one tell me the syntax . urgent

  2. #2
    Join Date
    Jan 2003
    Location
    Geneva, Switzerland
    Posts
    353
    See http://infocenter.sybase.com/help/in.../blocks139.htm for different ways of converting datetime values to strings.

    Michael

  3. #3
    Join Date
    Mar 2006
    Posts
    25

    Unhappy

    u use query

    select convert(datetime,"28/02/2006",103)

    regards
    prashant.

    Quote Originally Posted by Nirmala
    Hi ,

    I want to display '20060228' as '28 FEB 2006 10AM' . The field is of datatype datetime.

    can any one tell me the syntax . urgent

  4. #4
    Join Date
    Dec 2005
    Posts
    5
    try with cast command

  5. #5
    Join Date
    Dec 2005
    Posts
    5
    Hi Nirmala

    Try this

    select convert(datetime,'20060228')
    OP: 28/02/2006 00:00:00.000

Posting Permissions

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