473,513 Members | 2,275 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

date() not works in IE buts works well in firefox.....

tharini
9 New Member
Javascript code to find date/time difference works well in google chrome but not in firefox and IE....

Is the code given below is a valid argument for the date function?


Expand|Select|Wrap|Line Numbers
  1.  date(9-Sep-2010 04:24:54);
  2.  

I chose this date from a date/time picker...
Sep 23 '10 #1
1 1051
Dormilich
8,658 Recognized Expert Moderator Expert
it’s not. the constructor is called Date (with a capital D (JavaScript is case-sensitive))

not sure how picky Firefox is on the date string, but MDC states the date to be RFC1123 compliant.
Sep 23 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
2751
by: cquante | last post by:
Okay, maybe I'm just not looking hard enough, but I could really use some source code. I found some that works with IE, but I want to be able to do the same with firefox if possible. I know I can...
2
3025
by: deergregoryd | last post by:
I've got some PHP and javascript working together to create a marginless image popup from another arbitrary image. This works perfectly in Firefox, but IE bombs and I'm not really knowledgable...
9
7012
by: Dave | last post by:
Hi, I've been trawling the web for answer to my problem with no luck although I'm hardly alone it seems! Below is the generated source for an ASP page that posts a value called 'album' to...
7
5870
by: mdw9604 | last post by:
Hi all, I am newbie at javascript, but I have a script that animates gif images and worked for a number of years, but now with IE7 it does not work. I am getting an error on this line of...
4
2319
by: DavidJColbran | last post by:
Hello - new to the board and wondering if anyone can help with this. I have a site developed with the CMS ModX. It has a CSS UL list menu on the left hand side that needs to have roll-overs and a...
21
38494
by: modeep | last post by:
// JavaScript Document var easy = "046280000500600740200000000005032070021000480030170500000000005094001007000096830"; var easySplit = easy.split(''); var eAns =...
3
2102
by: Paul E. Schoen | last post by:
Sorry if this is a known problem with IE, but I was surprised to find that the following code snippet works OK in Firefox but not in IE6: else if (Form1.DogSex.value == "?") { alert ("Please...
5
3607
by: nickarnold | last post by:
Hi, this is my first time posting a question, so I apologize if I goof up or do not provide enough information. I am trying to implement a simple countdown script that I grabbed from Dynamic...
1
1966
by: user1980 | last post by:
I have an asp page that call a java script function to open a new window. this works well in Firefox, but in IE, it does not work. When I check the error on page at the bottom of the page, it gives...
0
7265
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7171
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7388
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7114
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7541
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4751
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1607
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
807
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
461
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.