Results 1 to 4 of 4

Thread: get month in a date

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2002
    Location
    London
    Posts
    678

    get month in a date

    Hi,
    My datareader returns a date as follows:

    oDrIdentifier.Item("WorkOutDate")
    return: #11/14/2011#

    I would like to separate year, month, and day.
    in immidiate window running:

    ?format(oDrIdentifier.Item("WorkOutDate"),"yyyy")
    returns : "2011"

    ?format(oDrIdentifier.Item("WorkOutDate"),"dd")
    returns: "14"

    ?????BUT????
    ?format(oDrIdentifier.Item("WorkOutDate"),"mm")
    returns "00"
    whereas it should return 11

    Any ideas please?
    THanks

  2. #2

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2002
    Location
    London
    Posts
    678
    solved. thanks

  3. #3
    Frenzied Member
    Join Date
    Nov 2003
    Posts
    1,489
    could u post how u solved this?

  4. #4
    Addicted Member
    Join Date
    Aug 2002
    Location
    top of the mountain
    Posts
    234
    mm - is for minutes, MM - is for months

    regard j

Posting Permissions

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



Click Here to Expand Forum to Full Width