Date Formatting problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Kerri

    #1

    Date Formatting problem

    Hi,

    I have an ASPX page with a textbox where the user enters a
    date.

    I have a variable of tyope date that I populate from teh
    form
    d

    dtMyDate = Request.Form("t xMyDate")

    I then call a function that formats my date.

    Public Function FormatDate(ByVa l dtMyDate as date) as Date

    FormatDate = Format(dtMyDate , "mm/dd/yyyy")
    End Function


    If I pass in the date 01/01/2003, it formats it as
    00/01/2003.

    Any ideas why this is.

    Thanks,
    Kerri.


Working...