0

I need to convert a date in the format [day-of-week], [month abbrev.] [date of month] to a more common format, mm/dd/yy. yy will always be the current year.

For example, Tue, Apr 17 would become 04/17/18.

My first thought was to create an array containing the abbreviated month names, and then looping that array to return the month in mm format. But is that overkill? What would be the most efficient way to handle this conversion?

asw1984
  • 713
  • 1
  • 7
  • 17

0 Answers0