Easy date formatting question

Discussion in 'ASP General' started by J. Muenchbourg, Oct 6, 2004.

  1. I have a variable that represents a standard mm/dd/yyyy date , but i
    want to change it to just October 6

    ''''

    datepart("m","d" , mydatevariable)

    '''''

    ....doesnt work.

    Muench

    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
    J. Muenchbourg, Oct 6, 2004
    #1
    1. Advertising

  2. J. Muenchbourg

    dlbjr Guest

    Function MyDateFormat(dtm1)
    If IsDate(dtm1) Then
    MyDateFormat = MonthName(DatePart("m",dtm1)) & " " & Day(dtm1)
    End If
    End Function

    --
    'dlbjr
    'Pleading sagacious indoctrination!
    dlbjr, Oct 6, 2004
    #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. Matt
    Replies:
    1
    Views:
    580
    Matthew Speed
    Nov 8, 2003
  2. Hazzard
    Replies:
    2
    Views:
    623
    Hazzard
    Apr 6, 2004
  3. Peter Grison

    Date, date date date....

    Peter Grison, May 28, 2004, in forum: Java
    Replies:
    10
    Views:
    3,210
    Michael Borgwardt
    May 30, 2004
  4. Matt
    Replies:
    2
    Views:
    499
    Pete Becker
    Nov 8, 2003
  5. Bruno Desthuilliers
    Replies:
    5
    Views:
    370
    Bruno Desthuilliers
    Aug 29, 2007
Loading...

Share This Page