+ Start a Discussion

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



You can specify the column header as followed


<apex:facet name="header">   

 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.