Results 1 to 5 of 5

Thread: Get Month Day

  1. #1
    Join Date
    Jan 2004
    Posts
    10

    Question Unanswered: Get Month Day

    Hi,

    Is there a way to get the current month day using a vbscript function, automatically.

    I am using this <%=MONTH(DATE)%> but it displays the number of the current month, I will like to be able to request the name of the month intead of the month number.

    I will appreciate any help.

    Thanks,

    Luis y Mary

  2. #2
    Join Date
    Jul 2003
    Location
    Penang, Malaysia
    Posts
    212
    <%=MonthName(MONTH(DATE))%>

    That should do it!
    Patrick Chua
    LBMS ( Learn By My Self) NPQ ( No paper Qualification )

  3. #3
    Join Date
    Jan 2004
    Posts
    10

    Get Month Name

    Patrick, this really work. I appreciate your help.

    Thanks,

    Luis y Mary

  4. #4
    Join Date
    Jun 2003
    Location
    USA
    Posts
    1,032
    And here are some resource to check out the names of all the VBScript functions.

    ASP Design Tips - VBScript Language Reference
    http://www.bullschmidt.com/devtip-vb...ereference.asp

    Windows Script
    http://msdn.microsoft.com/scripting/default.asp
    Official Microsoft and up to date but site can be slow.
    Visual Basic Scripting Edition VBScript Language Reference
    http://msdn.microsoft.com/library/de...bscripttoc.asp

    Visual Basic Scripting Edition Functions
    http://msdn.microsoft.com/library/de...ifunctions.asp

    DevGuru VBScript Introduction
    http://www.devguru.com/Technologies/...ipt_intro.html

    VBScript Language Reference
    http://www.asp-help.com/getstarted/ms/vbscript

    VBScript Functions
    http://www.w3schools.com/vbscript/vb..._functions.asp
    J. Paul Schmidt, Freelance Web and Database Developer
    www.Bullschmidt.com
    Access Database Sample, Web Database Sample, ASP Design Tips

  5. #5
    Join Date
    Dec 2003
    Posts
    454
    MonthName(Month(Date()), True) displays "Feb"

    MonthName(Month(Date()), False) displays "February"

Posting Permissions

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