Hello all,
I'm grabbing information from the expiration date of java certificates from a Linux box, and I set the columns to come back as follows:
Code:
Apr 09 2014
Mar 07 2014
Mar 06 2017
Apr 10 2015
Apr 07 2014
I have these in five different variables. I would like to feed each of them into a command that converts it into a different date format, if possible.
Here is the format I have in mind:
Code:
4-9-2014
3-7-2014
3-6-2017
4-10-2015
4-7-2014
The only real difference besides the alphabetic change is the elimination of the '0s' in the day column.
If anyone knows a way to do this it would be greatly appreciated.
Thanks!