updating weekly

Results 1 to 2 of 2

Thread: updating weekly

  1. #1
    Join Date
    Dec 1969

    Default updating weekly

    I&#039;m trying to figure out a way to display a date that would only change weekly, as opposed to simply showing the current server date (for expample, every Friday).<BR><BR>Any suggestions would be greatly appreciated.<BR><BR>thanks.

  2. #2
    Join Date
    Dec 1969

    Default something like this

    [code language="VBScript"]<BR>Select Case Datepart("w", date())<BR> Case 6 &#039;-- 6 = Friday<BR> DisplayDate = Date()<BR> Case 7<BR> DisplayDate = Date()-1<BR> Case Else<BR> DisplayDate = DateAdd("d", -(Datepart("w", date()) - 7), Date())<BR>End Select<BR><BR>[/code]

Posting Permissions

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