When I convert a datetime to a string, it prints out something like this
Jan 20 12:00:00 EST 2006
I want to trim off the last twelve characters, i.e.
:00 EST 2006
I tried to do it like so:
but the chomps seem to do nothing. I’d love to use regex, but I don’t
know which method to use to remove text from a string, or to just sever
the end of it (I tried unshift).