Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash








Display The Date In Flash


Hello, I always use php to make a date stamp....

Is there an easy way to do it in flash?

All the examples I find are lines and lines of code...

I usually do it with 1 line of php code... its nice and clean...

Anyonw done this in flash?




KirupaForum > Flash > Flash 8 (and earlier) > Flash MX
Posted on: 02-18-2005, 12:16 PM


View Complete Forum Thread with Replies

Sponsored Links:

Display Future Date (seven Days From Today's Current Date)
I understand how to display today's current date, but how would I display the date seven days from now? For example, if today's date is 4/29/2003, I want to display 5/5/2003.

Anyone done this before?

Thanks in advance.

Scott

View Replies !    View Related
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

View Replies !    View Related
Display Date In FLASH 4
im using Flash 4 and was wondering if there is any way of displaying time in a text box (called date)? is it possible to set the variable using something like JavaScript?? or other method

PS the movie will be published and viewed in html
any help would be appreciated

View Replies !    View Related
Display The Date In Flash
Hello, I always use php to make a date stamp....

Is there an easy way to do it in flash?

All the examples I find are lines and lines of code...

I usually do it with 1 line of php code... its nice and clean...

Anyonw done this in flash?

View Replies !    View Related
Day, Date, Year Display In Flash MX?
I've seen tutorials before but most of them give military time or numbers instead of names. Link? tutorial? open source anyone?

View Replies !    View Related
Display Mysql Date In Flash
Can anyone tell me the optimum way to do the following:

I have a php page that sends xml compiled from data in a mysql table to my swf. The swf is actually an auction and I need to load in the' end time' of that item and do a date comparision for a countdown.

So what I'm asking for, in a nutshell, is for the best way to load in a date from a database in such a way that it can be used for date comparisons?

The mysql field is a datetime field. I can modify the format in php to whatever you feel in the best format (I need year, month,day,hour,min, seconds) - but I don't know what to do with the date once I have it in flash.

example xml: <Item end_time="2005-04-01 00:00:00" />


can I convert it into a valid date with out string manipulation? since the following doesn't work (obviously)

my_date = new Date(oXML.firstChild.attributes.end_time)

What I need is to be able to take the current time & substract it from the time in the xml to give me the remaining time.

I hope this makes sense !!!

View Replies !    View Related
Display Mysql Date In Flash
Can anyone tell me the optimum way to do the following:

I have a php page that sends xml compiled from data in a mysql table to my swf. The swf is actually an auction and I need to load in the' end time' of that item and do a date comparision for a countdown.

So what I'm asking for, in a nutshell, is for the best way to load in a date from a database in such a way that it can be used for date comparisons?

The mysql field is a datetime field. I can modify the format in php to whatever you feel in the best format (I need year, month,day,hour,min, seconds) - but I don't know what to do with the date once I have it in flash.

example xml: <Item end_time="2005-04-01 00:00:00" />


can I convert it into a valid date with out string manipulation? since the following doesn't work (obviously)

my_date = new Date(oXML.firstChild.attributes.end_time)

What I need is to be able to take the current time & substract it from the time in the xml to give me the remaining time.

I hope this makes sense !!!

View Replies !    View Related
Display Mysql Date In Flash
Can anyone tell me the optimum way to do the following:

I have a php page that sends xml compiled from data in a mysql table to my swf. The swf is actually an auction and I need to load in the' end time' of that item and do a date comparision for a countdown.

So what I'm asking for, in a nutshell, is for the best way to load in a date from a database in such a way that it can be used for date comparisons?

The mysql field is a datetime field. I can modify the format in php to whatever you feel in the best format (I need year, month,day,hour,min, seconds) - but I don't know what to do with the date once I have it in flash.

example xml: <Item end_time="2005-04-01 00:00:00" />


can I convert it into a valid date with out string manipulation? since the following doesn't work (obviously)

my_date = new Date(oXML.firstChild.attributes.end_time)

What I need is to be able to take the current time & substract it from the time in the xml to give me the remaining time.

I hope this makes sense !!!

View Replies !    View Related
Display Mysql Date In Flash
Can anyone tell me the optimum way to do the following:

I have a php page that sends xml compiled from data in a mysql table to my swf. The swf is actually an auction and I need to load in the' end time' of that item and do a date comparision for a countdown.

So what I'm asking for, in a nutshell, is for the best way to load in a date from a database in such a way that it can be used for date comparisons?

The mysql field is a datetime field. I can modify the format in php to whatever you feel in the best format (I need year, month,day,hour,min, seconds) - but I don't know what to do with the date once I have it in flash.

example xml: <Item end_time="2005-04-01 00:00:00" />


can I convert it into a valid date with out string manipulation? since the following doesn't work (obviously)

my_date = new Date(oXML.firstChild.attributes.end_time)

What I need is to be able to take the current time & substract it from the time in the xml to give me the remaining time.

I hope this makes sense !!!

View Replies !    View Related
How Can I Display The Current Time/date In Flash?
I want to display the current date and time in a flash projector project I'm making. I want the format to be as such:

Saturday, November 25
05:44:03 PM

and I want them both to be real time, so they keep updating (i.e. a real clock).

I found the date object in actionscript, but have no idea how to use said functions....can anyone help?

PS - I don't need any more assistance as far as my other two threads are concerned. Thank you for the help so far.

View Replies !    View Related
Want A Flash Design File To Display On My Desktop Which Desplays My System Name,date
Hello there,

What i want is to make a flash file which will display my system name and date-time on my desktop as it should have a direct link with my system data, so when i shall change my system name or date or time, that flash file which is there on desktop should change itself....SO,
My first question is : Is it possible to make such a file (.swf) in flash.....and if yes then HOW.......??
I AM USING FLASH MX


thanx
vishal

View Replies !    View Related
How To Display Date?
Can anybody tell me how to display current date in the textbox? date in the sense year(2002) month(september) day(18) like that.

Thanks.

View Replies !    View Related
Date Display 28/02/05 Instead Of 28/2/05
Hey,

I am trying to figure out how to get the date to display like:

28/02/05

Instead of:

28/2/05

Here is my code.


Quote:




myDate=new Date();
day=myDate.getDate();
month=myDate.getMonth()+1;
year="0"+(myDate.getYear()-100)
time2=[];
time2=(day+"/"+month+"/"+year)




Thanks,

Jeff

View Replies !    View Related
Display The Date Using AS 3?
hello,

looking for a way to display the correct date in a Flash CS3 file using AS 3.

All the other examples are AS 2 or don't show the date (only time).

thanks.

View Replies !    View Related
How To Display The Date
greetings,

looking for the code or .fla that will help me in ActionScript 3.0 to display
the date.

the examples I've found have not been current.

help?

View Replies !    View Related
How Do I Display Date And Time Like This?
I am designing a site with flash mx and dreamweaver and I whould like to know how to display the date and time similar to this -----
Mon,24th June 2002 18:00 in HTML or Actionscript.

Thanks for any help
Ramon Blake Guthrie

View Replies !    View Related
How To Display Current Date?
Can anybody tell me how to display current date in the textbox, date in the sense year(2002) month(september) day(18) like that?

Thanks.

View Replies !    View Related
Display Day/Date From Server?
Trying to find a tutorial on adding the day & date from my server to my full Flash website.
I see a lot of tutorials that use the users system date but I don't want that.
I've added server day & date in .html sites before using cgi scripts.
Is there a way to do something similar in Flash??
I'm fairly new, using MX 2004 & looking for a tutorial.
Any help is appreciated.
jmitteco

View Replies !    View Related
Faulty Date Display
Hi all,

Could someone enlighten me on what is wrong with this tutorial that I followed. When I test the movie, the date shown is 28 December.

Where went wrong and how can I rectify it?

Thanks a million.

View Replies !    View Related
Display Date Not Working?
Hi all,

I'm using this code to display the day, month and year:


Code:
nuDate = new Date();
numMonth = nuDate.getMonth();
if (numMonth == 1) { wordMonth = "January" }
else if (numMonth == 2) { wordMonth = "February" }
else if (numMonth == 3) { wordMonth = "March" }
else if (numMonth == 4) { wordMonth = "April" }
else if (numMonth == 5) { wordMonth = "May" }
else if (numMonth == 6) { wordMonth = "June" }
else if (numMonth == 7) { wordMonth = "July" }
else if (numMonth == 8) { wordMonth = "August" }
else if (numMonth == 9) { wordMonth = "September" }
else if (numMonth == 10) { wordMonth = "October" }
else if (numMonth == 11) { wordMonth = "November" }
else if (numMonth == 12) { wordMonth = "December" }

displayDay = nuDate.getDate();
displayYear = nuDate.getFullYear();

//trace(displayDay + " " + wordMonth + " " + displayYear);
this.dateText = (displayDay + " " + wordMonth + " " + displayYear);


When I used the trace, it displays the date as it should (16 March 2006), but if I try to use it on a dynamic text field, with the va "dateText", it only displays "February".

Can anyone tell me why?

View Replies !    View Related
Date Display Script
Hi Members

Does anyone have actionscript that can display the current date and time on a flash site.

The date and time should be able to update itself without having to refresh the page.

I have tried a few, but they only update when the browser window is refreshed.

I will appreciate

Ciao

:-)

View Replies !    View Related
Display Error At Certain Date?
Hey, ive created a flash website for my works client (who is quite dodgy when it comes to payment!) and i was wondering if there is anyway of incorporating a countdown within the timeline or somewhere within the .swf file so that say they haven't paid me by the deadline date an error msg or maintenance msg appears? and obviously when we have recieved the payment i shall upload the flash site without this incorporated into it? this is quite urgent so any help soon would be very much appreciated! thanks

View Replies !    View Related
Display Date And Time
Hi out there,
I am just beginning my AS3 experience and have a question I hope someone can help me with.

I am attempting to display the date and time in two seperate dynamic text boxes on screen.

I have entered the code to call the current date and time but cannot seem to get the right coding to display it in the appropriate text boxes.

The text boxes have instance names of tbDate and tbTime.

Can someone please tell me what code I need to add to have the date and time to show in the appropriate text boxes

View Replies !    View Related
What Code Can I Display The Date And Time?
I have a flashwith a dynamic text box, and i want to show thw date and tiem in it...what code and how to made it !!!

View Replies !    View Related
How Do I Display Date And Time Like This? Part2
I am designing a site with flash mx and dreamweaver mx and I whould like to know how to display the date and time similar to this -----
Monday 18th November 2002 in HTML or Actionscript.

View Replies !    View Related
Image Display Depending On Date?
Hi,

I was just wondering if there's a script that anyone can offer or point in the direction to that depending on the date, a certain image will appear.. i.e. Jan. 1st it shows 1 image, then on Feb. 1st.. the script tells it to show another different image... thanks in advance

Inigo

View Replies !    View Related
[F8]Display Document Date Modified
Hello,
I was wondering if there was a way to display the date a dynamically loaded .txt file was made in a text box. I have the contents of the file loading into a text field and I would like a second box to display the date the file was last modified.

Cheers,
Jason

View Replies !    View Related
Trying To Display The Date/time Within A Movieclip
I am trying to display the date/time from within a movieclip. When I put the date/time movieclip in the main timeline it works fine, but when I put the date/time movieclip within another movieclip it doesn't work. Below is the code that I'm using.

onClipEvent (load){
timedate = new Date(); }

onClipEvent (enterFrame) {
hour = (timedate.getHours());
minutes = timedate.getMinutes();
seconds = timedate.getSeconds();
todaydate = timedate.getDate();
day = timedate.getDay();
dayname = days[day];
month = (timedate.getMonth()+1);
monthname = months[month-1];
year = timedate.getFullYear();
if (length(minutes) == 1) { minutes = "0"+minutes;
}
currenttime = hour+""+minutes;
currentdate = todaydate;
fulldate = todaydate;
delete timedate;
timedate = new Date();
}

View Replies !    View Related
Display Date And Time Of Certain Country
i need to display time of say hongkong only ... and what i am using right now shows time from the pc you are @. i am really a beginer in actionscript so it would be great if someone could help me out and tell me wat changes should i make in the actionscript. thank you


Code:
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();
dd = myDate.getDate();
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 = "January";
break;
case 1: mm = "February";
break;
case 2: mm = "March";
break;
case 3: mm = "April";
break;
case 4: mm = "May";
break
case 5: mm = "June";
break;
case 6: mm = "July";
break
case 7: mm = "August";
break
case 8: mm = "September";
break
case 9: mm = "October";
break
case 10: mm = "November";
break
case 11: mm = "December";
break
}


textdate = (hr + ":" + mnt + " - " + daytext + "," + dd + " " + mm + " " + yyyy)

View Replies !    View Related
Select Date Between Range And Display
Hello - i need some ideas to the following:

I need to create a form to submit some information, with the date that form was submitted, to a database using php.

Once the form is submitted i need to retrieve multiple rows from the database based on a selected date range, and display the information

Question one - any ideas on the flow that i need
question two - how do you think that i best record the date - given that i need to select a range later.
question three - how do I select mutiple rows give a range of dates

Thanks

View Replies !    View Related
Display Date/Time Regardless Of TimeZone?
The Flash Date object displays local time based on the viewers computer....how can I make it so it always displays the time in a certain timezone, regardless of the viewers location??

View Replies !    View Related
Select Date Between Range And Display
Hello - i need some ideas to the following:

I need to create a form to submit some information, with the date that form was submitted, to a database using php.

Once the form is submitted i need to retrieve multiple rows from the database based on a selected date range, and display the information

Question one - any ideas on the flow that i need
question two - how do you think that i best record the date - given that i need to select a range later.
question three - how do I select mutiple rows give a range of dates

Thanks

View Replies !    View Related
Display Date And Time In A Certain Country
Hi guys!

By default, when you visit a website that is made entirely in Flash and there is a Tme and Date movie clip feature... you know... it gets the current time and date of your computer so you're actually seeing your own time, right?

What I've always wanted to do is when you visit a website that is made entirely in Falsh, and you have a Time and Date movie clip that tells the creators current time and the current date instead of just getting the values of your computer time and displaying your own. I'm in the Philippines so I want the visitors of my site to view what time and date is it in the Philippines.

Can it be done?

View Replies !    View Related
Display Date And Time In A Certain Country
Hi guys!

By default, when you visit a website that is made entirely in Flash and there is a Tme and Date movie clip feature... you know... it gets the current time and date of your computer so you're actually seeing your own time, right?

What I've always wanted to do is when you visit a website that is made entirely in Falsh, and you have a Time and Date movie clip that tells the creators current time and the current date instead of just getting the values of your computer time and displaying your own. I'm in the Philippines so I want the visitors of my site to view what time and date is it in the Philippines.

Can it be done?

View Replies !    View Related
[Date & Time] Display Error
Hi all

I'll just dive right in. Here is my code:


ActionScript Code:
onClipEvent (enterFrame) {
    myDate = new Date();
 
    //puts "0" in front of month if it's less then 10
    if (myMonth<10) {
        myMonth = "0"+(myDate.getMonth()+1);
    } else {
        myMonth = (myDate.getMonth()+1);
    }
    //puts "0" in front of day if it's less then 10
    if (myDay<10) {
        myDay = "0"+(myDate.getDate());
    } else {
        myDay = (myDate.getDate());
    }
    //puts "0" in front of year if it's less then 10 (double digit year)
    if (myYear<10) {
        myYear = "0"+(myDate.getYear()-100);
    } else {
        myYear = myDate.getYear()-100;
    }
    //puts "0" in front of minutes if it's less then 10
    if (myMinutes<10) {
        myMinutes = "0"+(myDate.getMinutes());
    } else {
        myMinutes = myDate.getMinutes();
    }
    //puts "0" in front of seconds if it's less then 10
    if (mySeconds<10) {
        mySeconds = "0"+(myDate.getSeconds());
    } else {
        mySeconds = myDate.getSeconds();
    }
    //sets am or pm status
    if (myHours>12) {
        myHours = myDate.getHours();
        dateText.text = myDay+"."+myMonth+"."+myYear+" - "+(myHours-12)+":"+myMinutes+":"+mySeconds+" pm";
    } else {
        myHours = myDate.getHours();
        dateText.text = myDay+"."+myMonth+"."+myYear+" - "+myHours+":"+myMinutes+":"+mySeconds+" am";
    }
}


The problem is I want the minutes and seconds to have a "0" before them if they are less then 10, but what is happening is the "0" stays there until 12. Any suggestions?

Thanks in advance

View Replies !    View Related
How To Get The Date Object To Display The Proper Month
When using the date object and displaying months flash starts at 0 for jan, 1 for Feb. etc... This means july displays numerically as 6. We all know July is month 7 how can I make it display as 7?

View Replies !    View Related
Display Date Using Pictures Instead Of Dynamic Text
do you guys know how to tell flash to display date, instead of using dynamic text as output, can you assign numbers to pictures, and display them as date?

here's an example of what i meant:
yugop's industrious clock


thanks alot!

View Replies !    View Related
Display Info By Date (from Access Database)
I am trying to set up a dynamic page that automatically displays information from a database, that is specific to the current date. For example, at midnight tomorrow morning, the page would automatically display content specific to July 6th, and then would update to July 7th information on the following midnight, etc. Any ideas on the best way to accomplish this? Thanks so much!

View Replies !    View Related
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

View Replies !    View Related
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)

View Replies !    View Related
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.

View Replies !    View Related
Detect Flash / Display If Have / Display Image If Not.
Im using PHP so this is for "programmers" who use flash (or anyone who knows php enough to make a detection script).


I need to have a flash movie displayed on a page if it can determine whether or not the browser has the flash plugin. If it doesn't (ie can't tell what version, no plugin, etc) then I want it to display a GIF/jPg instead.

Using PHP and Flash 5

Help appreciated.

View Replies !    View Related
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

View Replies !    View Related
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

View Replies !    View Related
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,

View Replies !    View Related
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.

View Replies !    View Related
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);

View Replies !    View Related
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);

View Replies !    View Related
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

View Replies !    View Related
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.

View Replies !    View Related
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

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved