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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tharini
    New Member
    • Aug 2010
    • 9

    #1

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

    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?


    Code:
     date(9-Sep-2010 04:24:54);

    I chose this date from a date/time picker...
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    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.
    Last edited by Dormilich; Sep 23 '10, 11:11 AM.

    Comment

    Working...