Date Formatting

Results 1 to 3 of 3

Thread: Date Formatting

  1. #1
    Portrman Guest

    Default Date Formatting

    My databases date format is yyyy/mm/dd but the format for date() is not. Is there a way to format the date to be yyyy/mm/dd and then make it so that the asp still treats it like it is a date and not just a number?<BR>I know I can do this date=Year(date()) & Month(date()) & Day(date())<BR>But this makes "date" numberic instead of a date type<BR><BR>Also, I need to find a way to subtract a day from "date", so that I can create a link to the previous days info. <BR>Thx

  2. #2
    Kasper Guest

    Default RE: Date Formatting

    for date formatting check out : <BR><BR><BR><BR>for date subtraction use datediff function

  3. #3
    Portrman Guest

    Default RE: Date Formatting

    Must of missed this one, thx alot :-)<BR><BR>Portrman

Posting Permissions

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