Consulting

Results 1 to 2 of 2

Thread: Changing Date Format in an array

  1. #1

    Changing Date Format in an array

    The following query brings in dates, but in the m/dd/yyyy hh.mm.s format, and I want them to be in m/dd/yyyy.

    How can I easily make this change inside of the array? Thanks!

    querystring = "SELECT Performance.Date, Performance.Return FROM Performance ORDER BY Performance.Date;"
    databaseName = DatabaseConnection
    TempW = SQLRequest(databaseName, querystring, , 4, False)

  2. #2
    VBAX Regular
    Joined
    Jan 2007
    Posts
    20
    Location
    the solution will probably depend on what db you're querying if it's Access you can use the format function.

    format(Performance.Date,'mm/dd/yyyy')

    hth,
    Giacomo

Posting Permissions

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