how to display Weekday

Results 1 to 5 of 5

Thread: how to display Weekday

  1. #1
    Join Date
    Dec 1969
    Posts
    96

    Default how to display Weekday

    Is there any function in VBscript which will give me the weekday ie monday.tuesday etc and not the number if i pass a date.

  2. #2
    Join Date
    Dec 1969
    Posts
    731

    Default u asked for it...

    and it is...<BR><BR>MyWeekDay = Weekday(Date())<BR><BR>response.write MyWeekDay

  3. #3
    Join Date
    Dec 1969
    Posts
    96

    Default NO

    That displays the the no of the weekday ie 1,2 etc and not Monday...

  4. #4
    Join Date
    Dec 1969
    Posts
    731

    Default oh, sorry, try this

    and i have tried it out it displays the weekdayname for me.<BR><BR>Response.Write weekdayname(weekday(date()))


  5. #5
    Join Date
    Dec 1969
    Posts
    96

    Default thanks

    thanks

Posting Permissions

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