Ask a Question related to Macromedia Director Basics, Design and Development.
-
Dario Volaric #1
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
-
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... -
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... -
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,... -
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... -
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 ... -
Andrew Morton #2
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
-
Dario Volaric #3
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...*when> 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 2name> you use 2000-01-01 as the reference date*. So you can get the today's daysystemDate-date(2000,1,1))> for any date after 2000-01-01 with
>
> dn=["Sat","Sun","Mon","Tue","Wed","Thu","Fri"][(the> mod 7+1]
>
> Andrew
>
Dario Volaric Guest



Reply With Quote

