Support formatting time dataType via API in JS

Change-Id: Ic41f73e6a116bb8b520a3d40d9729cdf55f9fb4d
Merge "Support formatting time dataType via API in JS"