View Single Post
Old 01-25-2013, 10:49 PM   PM User | #2
Logic Ali
Regular Coder

 
Logic Ali's Avatar
 
Join Date: Sep 2010
Location: London
Posts: 961
Thanks: 0
Thanked 198 Times in 193 Posts
Logic Ali will become famous soon enoughLogic Ali will become famous soon enough
Quote:
Originally Posted by JasonJingle View Post
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( /\:[^:]*$/, "" );
Logic Ali is offline   Reply With Quote