how to get first day of the week

Ask a Question related to Macromedia Director Basics, Design and Development.

  1. #1

    Default how to get first day of the week

    Hi,

    Does annyone know how i can get director to detect what day it is? Like
    "monday, tuesday, etc.."
    I want it to know what day the first day of the week is. I tried "the long
    date". In dutch language settings it shows
    -- "maandag 16 februari 2004"
    But when i switch to UK locale settings it shows
    -- "16 February 2004"
    as the full date.
    So i cannot use this to determen what day of the week it is. Does annyone
    know a trick that will work?

    Thanx.


    Dario Volaric Guest

  2. Similar Questions and Discussions

    1. Tip of the week
      Hello from J&S Website Consulting & Training Services Tip of the week Contribute - Net I/O Logging If you have ever ran into a situation...
    2. Function week
      Function week should return the week number of the year. We are today the 23rd of february. If I run : #week(now())# it returns 9 , means week 9 of...
    3. D-day next week!
      Look out friends, I'm having a week from hell (and I think I have to work Saturday too). So I hear some of us are changing to OSX next week,...
    4. ASP.NET: Day / Work Week / Week / Month web calendar control with view like MS Outlook
      Hi!! Did Infragistics or some other company else provide a web calendar conrol with the features and look of Microsoft Outlook calendar? I mean...
    5. Display Week
      All, I have a date column and i want to be able to enter the date, and then have that populate antoher field . e.g - Date of Visit is ...
  3. #2

    Default Re: how to get first day of the week

    put the systemDate-date(2000,1,1)
    -- 1507
    put 1507 mod 7
    -- 2

    Today is Monday, so you can see that Monday is represented by the number 2 *when
    you use 2000-01-01 as the reference date*. So you can get the today's day name
    for any date after 2000-01-01 with

    dn=["Sat","Sun","Mon","Tue","Wed","Thu","Fri"][(the systemDate-date(2000,1,1))
    mod 7+1]

    Andrew

    Andrew Morton Guest

  4. #3

    Default Re: how to get first day of the week

    Tanx man, you rock!

    :-)


    "Andrew Morton" <akm@in-press.co.uk.invalid> wrote in message
    news:c0qe9c$oj4$1@forums.macromedia.com...
    > put the systemDate-date(2000,1,1)
    > -- 1507
    > put 1507 mod 7
    > -- 2
    >
    > Today is Monday, so you can see that Monday is represented by the number 2
    *when
    > you use 2000-01-01 as the reference date*. So you can get the today's day
    name
    > for any date after 2000-01-01 with
    >
    > dn=["Sat","Sun","Mon","Tue","Wed","Thu","Fri"][(the
    systemDate-date(2000,1,1))
    > mod 7+1]
    >
    > Andrew
    >

    Dario Volaric Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139