function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
praveenpropraveenpro 

Displaying Time in Visualforce page

Hi Everyone,

 

i want to display only  time in VF page.   current format is 18:30:00.000Z like this, but i want to show 6:30 pm .

Dhaval PanchalDhaval Panchal
Try this.

String stime = system.now().format('dd/MM/yyyy hh:mm:ss a', 'IST').Right(11);