01-25-2013, 10:49 PM
|
PM User |
#2
|
|
Regular Coder
Join Date: Sep 2010
Location: London
Posts: 961
Thanks: 0
Thanked 198 Times in 193 Posts
|
Quote:
Originally Posted by JasonJingle
Hi there.
I've got a string client side of the form 2013-01-25 22:31:55.809231
My question is, how can I manipulate this to throw away the milliseconds (and seconds if possible)?
|
timeString = timeString.replace( /\:[^:]*$/, "" );
|
|
|