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
OnurKOnurK 

Visualforce Table

Hi All, I am trying to make a visualforce table with the cheaders are days of the month (a calendar but I use table to populate cells) Is there any sample code that can anyone share with me? For example for january my headers be; 1/1 1/2 ....... 1/31 But for the february; 2/1 2/2 ............ 2/28 Thanks
harsha__charsha__c

Hi

 

You can specify the column header as followed

 

<apex:facet name="header">   
           {!TODAY()} 
         </apex:facet>

 But it will give you the date format as followed.

 

Tue Jan 22 00:00:00 GMT 2013

 

The date format can be formatted in the controller and save  to a variable and bind it to the page as the header if you need a specific format.