TODAY

Results 1 to 3 of 3

Thread: TODAY

  1. #1
    Join Date
    Dec 1969
    Posts
    27

    Default TODAY

    I have a database..that i connect to through an ASP Page..i need the ASP Page to find the DAY it is..so i can prepare my sql statement...e.g..Select * from whatever where day=MONDAY...<BR>how do i request the day...i can request the date..by doing now()

  2. #2
    p_balaji@hotmail.com Guest

    Default RE: TODAY

    Hi,<BR> There is a function weekday in VBscripting which returns the weekday as a number.Starting Sunday as 1 and saturday as 7.<BR> u can try like this.<BR> myweekday = Weekday(Date()) which returns 6 for friday.if u want it by name u can write a small switch case statement to get the names.<BR><BR>Balaji.

  3. #3
    ActiveALLI Guest

    Default RE: TODAY

    VBScript can also be used to return the names of the days<BR>myweekday = Weekdayname(weekday(date))

Posting Permissions

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