Finally figured out how to set date format in flot