Results 1 to 3 of 3

Thread: Formatting Dates

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2002
    Posts
    42

    Formatting Dates

    Does anymore know how to get an automatic date (something like Date() or Now() ) that will have the date format:
    '
    mm/dd/yyyy???

    thanks.

  2. #2
    Big D Danial's Avatar
    Join Date
    Jul 2000
    Location
    ASP.Net Forum
    Posts
    2,877
    Originally posted by warker
    Does anymore know how to get an automatic date (something like Date() or Now() ) that will have the date format:
    '
    mm/dd/yyyy???

    thanks.
    The best thing is to do is create your own date formatting function. EG separate the day month and year from the date and them out put it

    eg

    dim d, m, y

    d=day(date)
    m=moth(date)
    y=year(date)

    response.write m & "/" & d & "/" & y

    or you can use the FormatDateTime function

    hope this helps.
    [VBF RSS Feed]

    There is a great war coming. Are you sure you are on the right side? Atleast I have chosen a side.

    If I have been helpful, Please Rate my Post. Thanks.

    This post was powered by :

  3. #3
    New Member
    Join Date
    Jan 2002
    Location
    Sacramento
    Posts
    5

    Format date

    You can use
    FormatdateTime( now(), vbshortdate)

    But be sure to configure your server's date and time setting.
    You should be able to set it up under regional setting

Posting Permissions

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



Click Here to Expand Forum to Full Width