Picking day of week

Results 1 to 2 of 2

Thread: Picking day of week

  1. #1
    Join Date
    Dec 1969

    Default Picking day of week

    I&#039;m trying to write a simple asp script that writes HTML based upon the day of week. Pretty simple but my syntax isn&#039;t right. What&#039;s wrong with this picture? <BR><BR>&#060;%If Day(Now) = 1 Or Day(Now) = 3 Or Day(Now) = 5 Or Day(Now) = 7 Or Then%&#062;<BR><BR>Thanks!

  2. #2
    Justin Bonaparte Guest

    Default RE: Picking day of week

    Try Weekday(Now) instead of Day(Now). Returns the day of the week (1-7), instead of the day of the month (1-31).

Posting Permissions

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