On 30 Apr 2011, at 01:11, Scott Goldman wrote:
> A minor tweak request - I'd like to be able to show the time in AM/PM instead
> of a 24-hour clock. Can anyone offer guidance on that?
this would be a case of playing with the javascript date object.
eg. so instead of just doing
elem.innerText = new Date();
you'll need to format the date how you want it and set elem.innerText to that:
var now = new Date();
elem.innerText = now.toDateString() + " the time in my format here";
Unfortunately, there isn't a whole lot of built-in functionality to help that i
can find.
This should help though:
http://www.webdevelopersnotes.com/tips/html/10_ways_to_format_time_and_date_using_javascript.php3
--
You received this message because you are subscribed to the Google Groups
"Growl Discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/growldiscuss?hl=en.