It looks like formatValue
is expecting a Date
object. You can construct one if you know the epoch with new Date(epoch)
. After you create that object, you should be able to pass it to formatValue
and get the value you're expecting.
var dateFormatter = new google.visualization.DateFormat({formatType: 'short'});
var result = dateFormatter.formatValue(new Date(epochValue));