Added function to convert ruby date formats to D3 date formats. [AS-455]