cast from datetime type to smalldatetime type?

Discussion in 'ASP .Net' started by Salim Afþar, Aug 1, 2003.

  1. Salim Afþar

    Salim Afþar Guest

    Hi,
    How can I cast from datetime type to smalldatetime type.
    I get the records from a table which has got a datetime type column but I
    want to display it smalldatetime format.
    Thanks,
    Salim
     
    Salim Afþar, Aug 1, 2003
    #1
    1. Advertising

  2. Salim Afþar

    Stu Guest

    I think you can use something like:

    response.write(dMyLongDate.tostring("dd/MM/yy"))

    Regards,

    Stu


    "Salim Afþar" <> wrote in message
    news:%...
    > Hi,
    > How can I cast from datetime type to smalldatetime type.
    > I get the records from a table which has got a datetime type column but I
    > want to display it smalldatetime format.
    > Thanks,
    > Salim
    >
    >



    ---
    Outgoing mail is certified Virus Free.
    Checked by AVG anti-virus system (http://www.grisoft.com).
    Version: 6.0.505 / Virus Database: 302 - Release Date: 30/07/2003
     
    Stu, Aug 1, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Christos TZOTZIOY Georgiou
    Replies:
    3
    Views:
    743
    Christos TZOTZIOY Georgiou
    Sep 13, 2003
  2. Tim Peters
    Replies:
    0
    Views:
    580
    Tim Peters
    Sep 9, 2003
  3. mp
    Replies:
    1
    Views:
    417
    John Machin
    Jul 28, 2006
  4. Martin
    Replies:
    0
    Views:
    362
    Martin
    Dec 27, 2008
  5. Replies:
    2
    Views:
    787
    M.-A. Lemburg
    Jan 6, 2009
Loading...

Share This Page