Date formats and Y2K

Results 1 to 5 of 5

Thread: Date formats and Y2K

  1. #1
    Join Date
    Dec 1969
    Posts
    34

    Default Date formats and Y2K

    is there any way of getting todays date with the century, i am doing a lot of searching through tables on the date and am using<BR>now() which only gives the year, it will give the century in 2000 but that is no good for comparisons.. any ideas ?

  2. #2
    Join Date
    Dec 1969
    Posts
    168

    Default RE: Date formats and Y2K

    &#060;% <BR>LDate = Month(Date) & "/" & Day(Date) & "/" & Year(Date)<BR>Response.Write(LDate)<BR>%&#062; <BR><BR>Hope this helps... Cheers!<BR>

  3. #3
    Join Date
    Dec 1969
    Posts
    34

    Default RE: Date formats and Y2K

    thanks :)

  4. #4
    Join Date
    Dec 1969
    Posts
    34

    Default RE: Date formats and Y2K PROBLEM

    Using the day month and year is ok but I want to take 7 days off a date and still keep the full year, dateadd takes off the century, is this an old function ?


  5. #5
    Join Date
    Dec 1969
    Posts
    2,493

    Default RE: Date formats and Y2K

    &#060;% <BR>LDate = Month(Date) & "/" & Day(Date-7) & "/" & Year(Date)<BR>Response.Write(LDate)<BR>%&#062; <BR>

Posting Permissions

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