Ad Date Problem
Hi! For some inexplicable reason, the movie just jumps to frame 2 immediately when tested... Frame 2 should actually only be played after the countdown has ended...
ORIGINAL POST:
This code doesn't work properly... can anyone help me? 'eventDate' (='actualDate') should be TODAY, 8 o'clock sharp. (This code is part of a countdown that should restart automatically every day)
code: //part of the code
currentDate = new Date(); actualDate = new Date(8); thisYear = currentDate.getFullYear();
eventDate = actualDate.getTime();
REPLY:
Use this: code: actualdate = new Date(0, 0, 0, 8);
FlashKit > Flash Help > Flash Newbies
Posted on: 09-15-2004, 03:32 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Convert RSS2 Date Format To Flash Date() Object
How can I take an RFC 822 (RSS 2) formatted string, and read it into a Flash MX Date() object. Flash does'nt like the format.
I have a function that will break the string apart the long way but is there an easier way to accomplish this - I can't believe flash would'nt have it built in like .NET or ColdFusion.
Thanks!
Aaron
Date Specific Content/dynamic Text/Get Date
Hello,
I am trying to build a page where there is Date specific content, i.e. after a certain date the information becomes obsolete and will need to be replaced with new information.
Does anyone have any idea how I can go about doing this?
Thanks,
Kris
Comapreing A Datefield Selected Date To Current Date
i have a made a small swf which checks the seleted date on the datefield component is passed current date or not...
i have a function get the day associated with it...
stop();
function getDayName(num) {
switch (num) {
case 0 :
return "Sunday";
break;
case 1 :
return "Monday";
break;
case 2 :
return "Tuesday";
break;
case 3 :
return "Wednesday";
break;
case 4 :
return "Thursday";
break;
case 5 :
return "Friday";
break;
case 6 :
return "Saturday";
break;
}
}
today = new Date();
today = getDayName(today.getDay())+" "+today.getMonth()+" "+today.getDate()+" 00:00:00 GMT+06000 "+today.getFullYear();
on relese event of the button...
dateField is named - arr_date
on (release) {
_global.selday = _root.arr_date.selectedDate;
_global.selday2 = getDayName(_global.selday.getDay())+" "+_global.selday.getMonth()+" "+_global.selday.getDate()+" 00:00:00 GMT+06000 "+_global.selday.getFullYear();
res = (selday2<today);
_root.dis = res;
}
the thing is sometimes res says "TRUE" for future dates also.
download fla here
can anyone help on this.
Thanks
Display Date And Day With Computing Three Days From The Date With Certain Restriction
Hi
i have a code that display date and day from your local machine.
Here it is:
================================================== ===========
function howlong(arg) {
if (length(arg) == 1) {
arg = "0"+arg;
return arg;
} else {
arg = arg;
return arg;
}
}
myDate = new Date();
//hr = howlong(String(myDate.getHours()));
//mnt = howlong(String(myDate.getMinutes()));
daytext = myDate.getDay();
//daytext = daytext+3;
dd = myDate.getDate();
//dd = dd+3;
mm = myDate.getMonth();
//yyyy = myDate.getFullYear();
switch (daytext) {
case 0 :
daytext = "Sunday";
break;
case 1 :
daytext = "Monday";
break;
case 2 :
daytext = "Tuesday";
break;
case 3 :
daytext = "Wednesday";
break;
case 4 :
daytext = "Thursday";
break;
case 5 :
daytext = "Friday";
break;
case 6 :
daytext = "Saturday";
break;
}
switch (mm) {
case 0 :
mm = "Jan";
break;
case 1 :
mm = "Feb";
break;
case 2 :
mm = "Mar";
break;
case 3 :
mm = "Apr";
break;
case 4 :
mm = "May";
break;
case 5 :
mm = "Jun";
break;
case 6 :
mm = "Jul";
break;
case 7 :
mm = "Aug";
break;
case 8 :
mm = "Sep";
break;
case 9 :
mm = "Oct";
break;
case 10 :
mm = "Nov";
break;
case 11 :
mm = "Dec";
break;
}
textdate = (daytext+", "+mm+". "+dd+".");
================================================== ===========
Now problem is it should compute three days from that date with certain restrictions like (dont count Saturday and Sunday, Dec 25th, Nov, 22nd, Jan 1st)...
I have to display the date based on the above rules..
plz help
Thanks
maxarindam
Converting A Date Serial Number To A Real Date
I'm reading dates from Excel and I get this type of serial number : 37477. It's actually the number of days since 1-1-1900. Is there a function to convert that directly into a date in Flash ?
Thanks,
DATE() Reads Date From Server Or User?
2 questions about DATE() function:
1º The value is taken from the date setted on the server or the user machine?
2º How do i break apart the value to check each value? I mean, day, month, etc.
Im working on a quiz that has to display a different question every 15 days. Im loading them from a TXT. I´m missing that part of the code.
Thanks for any help.
Flash MX: Date To String And Back To Date
Greetings,
Im struggling to (a date which is converted to a string to format date as mm/dd/yyyy hh:mm:ss") transform the string textDate into a Date?
Im looking at mxateFormatter but I dont understand how it works
Any advice and guidance would be appreciated.
Cheers
Rob W
Code:
displaydate = new Date();
var day = displaydate.getDate()>9 ? displaydate.getDate() : "0"+displaydate.getDate();
var month = displaydate.getMonth()+1;
var years = displaydate.getFullYear();
if (month <9)
{
var month = "0"+month;
}
displaydate = (month + "/" + day + "/" + years);
timedisplay = new Date();
var hours = timedisplay.getHours()>9 ? timedisplay.getHours() : "0"+timedisplay.getHours();
var minutes = timedisplay.getMinutes()>9 ? timedisplay.getMinutes() : "0"+timedisplay.getMinutes();
var seconds = timedisplay.getSeconds()>9 ? timedisplay.getSeconds() : "0"+timedisplay.getSeconds();
timedisplay = (hours + ":" + minutes + ":" + seconds);
_root.textDate = (displaydate + " " + timedisplay)
Bad Data From Date.getDay() And Date.getMonth()
I am trying to utilize the Date class to retrieve the current date, and populate fields for each date part. However, the day and month returned from either the day/month properties or the getDay()/getMonth() methods are incorrect: today is 4/11/2008, yet I get back a month of 3 and a day of 5!
Here is the relevant code:
var curDate:Date=new Date();
NewProjectStartMonthField.text=String(curDate.getMonth());
NewProjectStartDayField.text=String(curDate.getDay());
NewProjectStartYearField.text=String(curDate.fullYear);
Figuring Out A Previous Date With Date Class
I have a need to allow people to choose a date range in my application. I can't figure out how to format a dat that is say 30 days prior to today.
For instance:
var Today_Date = new Date();
var Proior_Date = Toay_Date - newDate(30);
Comparing Current Date With Date String
Im loading in a date from a database and storing it in a string called dateToCheck. The dates I am loading in from my datebase could be anything so I want to check if its past, present or future but as its a string and not a date when I compare to the current date it doesn't seem to work.
Im storing the current date in actions script like this
var today_dateate = new Date();
var date_str:String = (today_date.getDate()+"/"+(today_date.getMonth()+1)+"/"+today_date.getFullYear());
Do I need to convert the value date value Im loading from my database into a proper date before I can check it agains the current date? If so is there any easy way of doing it.
Thanks
Posting The Date <--- NOT GETTING DATE FROM SYSTEM -->
Anyway to make a button post the date that it was pressed on. Like lets say I have an update news button. when someone updates it I want it to replace a variable with the current date, and NOT updating it as the movie is playing but posting the date that the button was pressed.
If Start Date Is Greater Then End Date>>?
Hello,
Lets say a user enters in a start date of 5/22/2002 and enters in a end date of 4/22/2002. I need Flash to give me an error message letting the user know that the date is not right.
Any ideas??
Thanks
Date Generation Without Using Date Function
I'm writing a program for a rental company. The code will
allow the user to select a date from a gui, enter the
number of days that the user will stay, and generate a
departure date. The script works in some cases but not
others. You can view this work in progress at:
http://tripdogs.com/two
as this work is not complete, some explanation as to
how to execute program:
select month and date
click "click to verify date"
click "check availability"
click "1" other buttons not functional
enter "enter # of nights"
click "Select"
The program gets the date right sometimes, sometimes not.
Any help would be much appreciated.
Thanks in advance, Ron Sullivan <bigal@adelphia.net>
The code is on the select button (I've pasted it below):
on (release) {
nextFrame ();
property = "Breakers"+" Villa";
view = "Ocean"+" View" ;
normalRate = "$"+200.00;
internetRate = "$"+"160.00";
saving = "$"+nights*40+".00";
total = "$"+nights*160+".00";
departureDate = Number(_level0.days.ad)+Number(nights);
if (_level0.Select_md.am=="Jan") {
y = "31";
if (Number(_level0.days.ad)+Number(departureDate)>y) {
departureMonth = "Feb";
departureDate = (Number(_level0.days.ad)+Number(nights))-31;
} else {
departureMonth = "Jan";
}
} else if (_level0.Select_md.am=="Feb") {
y = "28";
if (Number(_level0.days.ad)+Number(departureDate)>y) {
departureMonth = "Mar";
departureDate = (Number(_level0.days.ad)+Number(nights))-28;
} else {
departureMonth = "Feb";
}
} else if (_level0.Select_md.am=="Mar") {
y = "31";
if (Number(_level0.days.ad)+Number(departureDate)>y) {
departureMonth = "Apr";
departureDate = (Number(_level0.days.ad)+Number(nights))-31;
} else {
departureMonth = "Mar";
}
} else if (_level0.Select_md.am=="Apr") {
y = "30";
if (Number(_level0.days.ad)+Number(departureDate)>y) {
departureMonth = "May";
departureDate = (Number(_level0.days.ad)+Number(nights))-30;
} else {
departureMonth = "Apr";
}
} else if (_level0.Select_md.am=="May") {
y = "31";
if (Number(_level0.days.ad)+Number(departureDate)>y) {
departureMonth = "Jun";
departureDate = (Number(_level0.days.ad)+Number(nights))-30;
} else {
departureMonth = "May";
}
} else if (_level0.Select_md.am=="Jun") {
y = "30";
if (Number(_level0.days.ad)+Number(departureDate)>y) {
departureMonth = "Jul";
departureDate = (Number(_level0.days.ad)+Number(nights))-30;
} else {
departureMonth = "Jun";
}
} else if (_level0.Select_md.am=="Jul") {
y = "31";
if (Number(_level0.days.ad)+Number(departureDate)>y) {
departureMonth = "Aug";
departureDate = (Number(_level0.days.ad)+Number(nights))-31;
} else {
departureMonth = "Jul";
}
} else if (_level0.Select_md.am=="Aug") {
y = "31";
if (Number(_level0.days.ad)+Number(departureDate)>y) {
departureMonth = "Sep";
departureDate = (Number(_level0.days.ad)+Number(nights))-31;
} else {
departureMonth = "Aug";
}
} else if (_level0.Select_md.am=="Sep") {
y = "30";
if (Number(_level0.days.ad)+Number(departureDate)>y) {
departureMonth = "Oct";
departureDate = (Number(_level0.days.ad)+Number(nights))-30;
} else {
departureMonth = "Sep";
}
} else if (_level0.Select_md.am=="Oct") {
y = "31";
if (Number(_level0.days.ad)+Number(departureDate)>y) {
departureMonth = "Nov";
departureDate = (Number(_level0.days.ad)+Number(nights))-31;
} else {
departureMonth = "Oct";
}
} else if (_level0.Select_md.am=="Nov") {
y = "30";
if (Number(_level0.days.ad)+Number(departureDate)>y) {
departureMonth = "Dec";
departureDate = (Number(_level0.days.ad)+Number(nights))-30;
} else {
departureMonth = "Nov";
}
} else if (_level0.Select_md.am=="Dec") {
y = "31";
if (Number(_level0.days.ad)+Number(departureDate)>y) {
departureMonth = "Jan";
departureDate = (Number(_level0.days.ad)+Number(nights))-31;
} else {
departureMonth = "Dec";
}
}
}
Date Math In Date Object?
This seems like an easy question, which i'm sure has an easy answer. How do i do math with days?
ex:
today + 4 = 11/20/2002 (4 days from today)
Seems easy enough but can't find any example of it
DateChooser Start Date End Date
Hello everyone!
i am new to this forum and this type of scripting. I self taught myself PHP and now i am trying to teach myself Flex 2. I am trying to create a datechooser that takes the first date that is clicked and make all dates before that first date disabled.
I figure i can accomplish this by datechooser.disableranges is equal to the date they just clicked.
then as they click the second date send both the dates to a PHP file.
Any tutorials or script that i can backwards decompile to help figure this out is appreciated. I have tried searching for weeks on tutorials and such but have came across nothing.
Date Chooser Day And Date Not Selectable
Hello,
Anyone knows how to make the day and date not selectable in the datefield or date chooser component???
It is possible to make any one day not available, but what i need is only a single day not selectable..
For example, i can make every tuesdays of a month not selectable But, i need to make for example the Tuesday 3rd only Not selectable
Any help will be greatly appreciated.
Cordially.
Gerard.
Flash Date And Oracle Date
Is it possible to convert a date being retrieved from an oracle database to the flash Date format in flash so that the different Actionscript date functions can be applied to the retrieved date.
Countdown To Date, Loading Date From Txt
Hey everyone,
I'm working on a Flash movie to countdown to a certain date, and I am wanting to assign that date in a .txt file so it is easy to change the date without modifying the FLA.
Here's the ActionScript I have for finding the date it's counting down to from the .txt file:
loadText = new loadVars();
loadText.load("date.txt");
loadText.onLoad = function() {
eventDate = new Date(this.year, this.month, this.day);
};
And the date.txt file has this in it:
year=2003&month=12&day=25
It doesn't seem to be working :- .
Any help would be awesome .
-Nick
Countdown To Date, Loading Date From Txt
Hey everyone,
I'm working on a Flash movie to countdown to a certain date, and I am wanting to assign that date in a .txt file so it is easy to change the date without modifying the FLA.
Here's the ActionScript I have for finding the date it's counting down to from the .txt file:
loadText = new loadVars();
loadText.load("date.txt");
loadText.onLoad = function() {
eventDate = new Date(this.year, this.month, this.day);
};
And the date.txt file has this in it:
year=2003&month=12&day=25
It doesn't seem to be working :- .
Any help would be awesome .
-Nick
Date = New Date() Question
i noticed that newDate() takes the date from user´s computer. Is there a way to take it from the server?
Date Calculation From A Given Date
Hi all!
Anyone can help me please, how too build a function that:
user insert a date: "20/05/2005"
and the system return me the given date + 7 days, so : "27/05/2005"
Thanks.
Date Calcutation From Given Date
Hi all!
Anyone can help me please, how to build a function that:
user insert a date: "20/05/2005"
and the system return me the given date + 7 days, so : "27/05/2005"
Thanks.
Date Countdown To A Date Given In .txt
Hi!
I created a countdown movie ( http://www.2rdesign.com/help/countdown.zip ). I works nicely, but i need to pass the new date to is from an outer source. Could anyone help me out here?
Thanks!
[Date/year] Get Date Year And View Problem
im new to action script so please help me
i have this on a text box,
thisDate = new Date();
allDays = new Array("Sunday","Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" );
allMonths = new Array("January", "Feburary", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
thisDay = thisDate.getDate();
if (thisDay.length()<=1) {
thisDay = "0"+thisDay;
}
thisYear = thisDate.getFullYear();
thisDateString = " " add allDays[thisDate.getDay()] add ", " add allMonths[thisDate.getMonth()] add " " add thisDay add ", " add thisYear;
_root.DateTimeField = thisDateString;
it work fine then i open the swf, but when i load it into empty MC it dose not work.
has it got some thing to do with the _root.DateTimeField = thisDateString;??
if so what do i change it to
Date
How do you set a live date in flash?
Date
i have a current news section within a site that uses a script to retrieve the current date. it takes the date and loads a .txt with the corresponding name.
i.e. 10/5/01 would retrieve 10501.txt
all works fine. i would also like to have a small archive for loading news for the previous 6 days. i could obviously do all this manually, but dynamic is what i am trying to work towards.
my question is, is it possible for my archive to ONLY load the previous 6 dates dynamically.
i.e. today is 10/5/01
my archive would contain 6 buttons that load:
10401.txt
10301.txt
10201.txt
10101.txt
93001.txt
92901.txt
so basically it would look at today's date, and subtract 6 days without coming up with something like:
10/-1/01
all my sad attempts have failed pathetically, so if anyone could shed some light i would appreciate it.
Date?
how do you get a date and time to post?
Bug In Date(); Mx?
I just find a problem in the Flash MX Date (object)... I tried it in diffrent flash mx programs and in the Flash 5 too.
Code:
Code:
onClipEvent (enterFrame) {
hoy = new Date(2002, 7, 20);
vence = new Date(2002, 7, 20);
if (hoy == vence) {
trace("1");
}
if (hoy<vence) {
trace("2");
}
if (hoy>vence) {
trace("3");
}
}
Now.. in the Flash 5 the response of the trace was.."1" like it should be... but in the Flash MX the trace gave me no answer...
I didnt know if there was a change in the actionscript.. so i went to see the Flash help of the MX version.. about the Date (object), and the examples were:
"he following example retrieves the current date and time.
now = new Date();
The following example creates a new Date object for Gary's birthday, August 7, 1974.
gary_birthday = new Date (74, 7, 7);"
But there are no changes.... So what can i do? Whats the problem there?? Thanks!
[Edited by NikeCool on 07-20-2002 at 12:10 AM]
Date
how could i take date from my computer and show it in flash, date is change every day...?
Get Date
I have a calendar (for flash player 5...ughh!) that's basically layed out so that each month is 5 frames ahead of the previous month in the timeline. What I'd like to do is check the users system clock and change the frame to the correct month in the timeline based upon the data that's brought back from the system clock so that I don't have to go into the flash file every month to change it.
Can anyone help? I don't think that I'm too far off, but who knows -- I may be. This is the script that I've attempted to hack (as I'm definitely not a developer) and it's not working.
currentDate = new Date();
hours = (currentDate)/1000/60/60;
hoursRound = Math.floor(hours);
// -- September -- //
if (hoursRound == 9) {
hoursRound = 5;
}
// -- October -- //
if (hoursRound == 10) {
hoursRound = 10;
}
gotoAndStop(hoursRound);
stop();
Thanks much, everyone!
Getting Up To Date
I am fairly new to Flash MX (Used Flash 3 many many years ago) and am having difficulty updating one script to use nondeprecated scripts. How can I convert the script below to use the new "dot" format? Thanks.
on (release) {
tellTarget("Orange Turn") {
gotoAndStop (_level0:color);
}
}
Orange Turn is a frame label inside a movie clip. These are both in the same scene.
Date
how do i make a date such as month date year in jsut plain text in flash so it changes everyday?
It should look something like : January 1st, 2004
Help On Date
Im almost done with some flash project of mine, but I still need one thing...
I have this variable, the name is day_num and in the first frame of my application i want it to get a value, that value must depend on the date, when it's the first day of the year(january 1), I want it to get the value 1 and when its the second day of the year(january 2) it should get the value 2 and so on untill day 365 (december 31), where it gets the value 365. I am totally unfamiliar with the date object so I cant do this on my own. Any help?
GMT/UTC Date()
mydate = new date()
makes the variable mydate equal to the clients clock
I wish to have a variable that has GMT time/date assigned to it. What is my line of actionsctipt to do this.
I am using MX7.1, actionscrtipt 2.
Thanks.
Get.date
hi, i have a christmas calander with 24 days, and i need the buttons
to start working after the date arrives. after midnight every day.
and i need it to gotoandplay a another frame in the Scene
so i don´t need to make the bottons active every day.
Please help ... if you understand.
as soon as posible.
..Öss.
Date();
Simple question, I'm using the Date function to get the date returned as "21/12/2004" for example
what I want to know, is there a way of getting flash to recognise wether one date is earlier or later than the other
for example
Code:
if (12/11/2004 > 30/12/2004
}
does flash recognise this? Or am i going to have to come up with a script?
thanks
Date
if i have a textbox how do i keep an updated date (mmmmm dd, yyyy) (ex. March 12, 2005) in the textbox?
thanx
austin
Date Help
this code gives me the GMT?
I tried using the arguments of year, month, date etc but, that doesn't work either.
now= new Date(year, month);
iclip.vdate= now;
Need to display simple year, month, day.
Even tried the date component but it just sits there.
Help!!!!!!!!
Date Help
hi. i have created an advent calendar type thing but i want to create a function that checks when the movie loads if the day has passed then set the door to open state.
so far i have:
a for loop to set the door numbers and passes the door number to a function when the door btn is pressed :
Code:
for (a=0; a<=25; a++) {
allDoors_mc["door"+a+"_mc"].dayNumber = a;
allDoors_mc["door"+a+"_mc"].btn.onRelease = function() {
// call the function
_root.openDoor(this._parent.dayNumber);
};
}
then i run this function:
Code:
function openDoor(p_dayNum) {
// Check
if (mm == 11) {
output_txt.text = "month = december";
} else {
output_txt.text = "month != december";
}
if (dd>=p_dayNum) {
allDoors_mc["door"+p_dayNum+"_mc"].gotoAndPlay("play");
output2_txt.text = "day more than door num";
} else {
output2_txt.text = "day not more than door num";
}
}
This all works fine but you have to click on the doors all the time you load the move. i would like when it loads to open the previous days, not the current day tho.
Any help welcome
Cheers
Date
Is there anyway to display the current date and time on flash using actionscript?Thanks~
Do This On A Certain Date
I want the text to change on a certain date in the future.
So, to test it I set it on a date in the past to see if the function would activate and it doesn't seem to work... any ideas why?
why doesn't the below code work?
I have this code on the first frame of a movieclip that contains the dynamic text box with the variable name 'announce.'
ActionScript Code:
var area:String = "NOW!";
this.onEnterFrame=function() {
var prem = new Date();
var month = prem.getUTCMonth();
var date = prem.getUTCDate();
var year = prem.getUTCFullYear();
if((month >= 7) && (date >= 31) && (year == 2008)){
announce.text = area;
}
};
thanks in advance!
FME Date?
Anyone know when the Flash Media Encoder 3.0 will be out? It says coming soon on their site. I heard gossip that they are working on a mac version. I really hope it comes out with 3.0 and soon! Anyone know?
Day And Date
I have a client who is insistent that he wants to have a Day and Date. I haven't a clue how to make this work, is there tutorial or something of that nature out there anyone can point out to me? Any help will be GREATLY appreciated...
Date
I'm still very newbie at Flash and ActionScript, so please ansver understandable
I'm making a clock script that will be able to tell the user the time, the date, the year, the week of the year, and the day of the year. I've found out how I do most of it, but I have problems finding the week and the day of the year. This is what I have, and what I know works:
time=new Date();
var seconds = time.getSeconds()
var minutes = time.getMinutes()
var hours = time.getHours()
var dato = time.getDate()
var month = time.getMonth()
var year = time.getFullYear()
Is There A Bug In New Date()
if i do this:
ActionScript Code:
dDate = new Date();
Dow=dDate.getDay();
DOw equals 1, which is incorrect
however if i specify this month and year:
ActionScript Code:
dDate = new Date();
Dow=dDate.getDay();
DOw equals 5, which is correct
i cant beleive i have to do this to get the solution:
ActionScript Code:
dDate = new Date();
dDate = new Date(dDate.getFullYear(),dDate.getMonth());
Dow=dDate.getDay();
DOw equals 5
Hambo
Date
I know this is a sillt question but how do I format the date and time to get in a number format i.e: 20051103132458? I've found a lot of people who claim to know how to do that but I try these methods and still get Fri Nov 18 13:58:25 GMT-0500 2005.
I can't figure out what I'm doing wrong. Any help would be appreciated.
Thanks
Bug With Date
While working on a project I've ran across a pretty nasty bug with the Date class in flash. I've tested this in 8.0 Professional and the issue also exists in 9.0 Alpha Release.
var d1:Date = new Date(2006, 12, 21);
var d2:Date = new Date(2007, 1, 31);
trace(Math.floor((d2.getTime() - d1.getTime()))/ 86400000);
This bit of code will trace 42 days which is correct.
Now try this:
var d1:Date = new Date(2006, 12, 21);
var d2:Date = new Date(2007, 2, 1);
trace(Math.floor((d2.getTime() - d1.getTime()))/ 86400000);
It traces out 39.
So how can a day one day later be 3 days less? Nice eh?
I further tested
var d1:Date = new Date(2006, 12, 21);
var d2:Date = new Date(2007, 12, 21);
trace(Math.floor((d2.getTime() - d1.getTime()))/ 86400000);
Which traces 365 and is correct. It appears there is some time frame in Febuary, I haven't defined the range that has problems.
GET DATE
Hi, i have the following code
var currDate = new Date()
var day = currDate.getDay()
var month = String(currDate.getMonth())
this.currDate_txt.text = day+"/"+month
It is upposedto display the date but it is displaying something that does not correspond with todays date. It should get ony day and month.
Help is welcome.
|