@quynhtd,
You can pass x-value in timestamp (either by passing timestamp in milliseconds directly or using getTime()) to convertValueToPixel in order to get the pixel coordinate of a given value over dateTime axis.
Please check this jsfiddle.
—
Vishwas R
Team CanvasJS