Okay, so this is a valid Javascript date if you use:
var timeFrom = new Date(myArray[j].DateFrom)
You don't need to call getTime(). You just have to tell your dimension binding that its dataType is "date"
If you are using an XML view it would be:
- <viz.data:DimensionDefinitionname="Date"
- value="{DateFrom}"dataType="date"/>