« first day (1381 days earlier)      last day (1874 days later) » 

4:46 AM
I have a time like this: -> "2017-10-24T06:00:00.00Z"
and I want to convert it to this format -> "2017-10-29T06:00:00Z"
How can I do that ?
^ Note the amout of zeroes after T06:
Don't mind the change of dates, I just want them in the same formar, regarless of the value
 
 
1 hour later…
6:03 AM
@yask It looks like you wish to remove the fractional seconds. This should work: s.sub(/\.\d+Z/, "Z")
 

« first day (1381 days earlier)      last day (1874 days later) »