Forum Moderators: open
I have to take a string which has a time in it in 24 hour format, change the time to 12 hour format and output it to the page. Unfortunately due to the particulars of this situation, I'm limited mostly to JavaScript.
Here's an example of what the text could look like:
1 - Date:2/28/2009, Time:0900-1200, Type:BRK, Comment:bla bla 2 - Date:3/05/2009, Time:1100-1400, Type:PUB, Comment: yada yada
I have a javascript class that works in FF but in IE7. In IE it gives the 'Object doesn’t support this property or method'. Here's the line it references and the one above it for context.
for( var key in times ) {
original_hour = times[key].substring( 0, 2 );
If anyone could help me figure out what's causing IE to balk at this script I would really appreciate it.