You need to sign in to do that
Don't have an account?
Edwin Vijay
Date field does not display in VF
java.util.GregorianCalendar[time=1213779900000,areFieldsSet=true,areAllFieldsSet=true,lenient=true,zone=sun.util.calendar.ZoneInfo[id="GMT",offset=0,dstSavings=0,useDaylight=false,transitions=0,lastRule=null],firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=1,YEAR=2008,MONTH=5,WEEK_OF_YEAR=25,WEEK_OF_MONTH=3,DAY_OF_MONTH=18,DAY_OF_YEAR=170,DAY_OF_WEEK=4,DAY_OF_WEEK_IN_MONTH=3,AM_PM=0,HOUR=9,HOUR_OF_DAY=9,MINUTE=5,SECOND=0,MILLISECOND=0,ZONE_OFFSET=0,DST_OFFSET=0]
This is how a field of type DATE/TIME got displayed in a data table... I am using a custom controller to query the database and get this value.. Do i need to do any type conversion to display this date in proper format
Thanks
This is how a field of type DATE/TIME got displayed in a data table... I am using a custom controller to query the database and get this value.. Do i need to do any type conversion to display this date in proper format
Thanks
Thanks
Thread here
No idea if it's fixed yet, but I did consider it a bug, albeit pretty low priority.
<apex:dataTable value="{!results}" var="res" cellpadding="3" cellspacing="0" border="1" id="table">
<apex:column ><apex:facet name="header">Submitted Date</apex:facet> {!res.Submitted_Date__c}</apex:column>
</apex:dataTable>
This is the code i used for displaying a field of type date/time...
The first time i saved this page i got the following value in place of SUBMITTED DATE...
java.util.GregorianCalendar[time=1213779900000,areFieldsSet=true,areAllFieldsSet=true,lenient=true,zone=sun.util.calendar.ZoneInfo[id="GMT",offset=0,dstSavings=0,useDaylight=false,transitions=0,lastRule=null],firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=1,YEAR=2008,MONTH=5,WEEK_OF_YEAR=25,WEEK_OF_MONTH=3,DAY_OF_MONTH=18,DAY_OF_YEAR=170,DAY_OF_WEEK=4,DAY_OF_WEEK_IN_MONTH=3,AM_PM=0,HOUR=9,HOUR_OF_DAY=9,MINUTE=5,SECOND=0,MILLISECOND=0,ZONE_OFFSET=0,DST_OFFSET=0]
I opened the same VF page after some time... and i got the desired output...
What would be your suggestions for this...
Thanks,
Edwin