/    Sign up×
Community /Pin to ProfileBookmark

DateFormat script not working for FireFox

Hi,

I have been using the script for date format for more than four years. And suddenly it’s not working for Firefox (Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14), but it’s still working for IE6.

The problem is everytime I move the focus out of the date field, the data in the field loses the last digit, e.g. 01/01/2008 will become 01/01/200.

Any idea?

to post a comment
JavaScript

5 Comments(s)

Copy linkTweet thisAlerts:
@FangApr 18.2008 — Show the document
Copy linkTweet thisAlerts:
@david_gaoauthorApr 18.2008 — Please reference the page at: http://javascript.internet.com/forms/format-date.html.

This is the place where I got my script from. I used the same script at my page, and now both pages have the same problem.

Show the document[/QUOTE]
Copy linkTweet thisAlerts:
@WebJoelApr 18.2008 — Please reference ...[/quote] You only need to post once. 'New Members' posts are held in a Mod. queue until reviewed and released. ?

I removed the other dupes. ?

& welcome!
Copy linkTweet thisAlerts:
@FangApr 18.2008 — Use the updated version on the coders site: http://www.spiritwolfx.com/samplecode/dateformat/dateFormat.cfm
Copy linkTweet thisAlerts:
@david_gaoauthorApr 19.2008 — Hi Fang, thanks a lot. You save my day!

And sorry WebJoel, I didn't know that. Will remember next time.
×

Success!

Help @david_gao spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...