Results 1 to 2 of 2

Thread: DATE FUNCTION HELP, please..

  1. #1
    Dillon Guest

    Default DATE FUNCTION HELP, please..

    If I&#039m given a DateTime value, how can I easily<BR>extrapolate the Month, Day, and Year?<BR><BR>Is it possible to get the number and string formats?<BR>Ie. to get January AND 1, Feb. AND 2, etc?

  2. #2
    Join Date
    Dec 1969

    Default RE: DATE FUNCTION HELP, please..

    Use the functions Month, Year, and Day to get the month, year, and day from a datetime.<BR><BR>Dim dtNow<BR>dtNow = Now()<BR><BR>Response.Write "This is the " & Month(dtNow) & " month of the " & Year(dtNow) & " year."<BR><BR>Check out the technical documentation for more information:<BR><BR><BR><BR><BR>Happy Programming!

Posting Permissions

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