convert date to date time for client browser compatibility
date based graph, also get raw data by dates