You need to sign in to do that
Don't have an account?
How to convert and display Milliseconds to date on visualforce page?
Hello Everyone, I want to display Date in Date formate but it's showing in Milliseconds.
i have attached vf code, query, and output on VF page.
How to display Date insted of Milliseconds.
Visualforce code:

Output on VF page:

I want to convert this Milliseconds(1569283200000) and show it in Date formate (2019-09-24).
Thank you🙂
i have attached vf code, query, and output on VF page.
How to display Date insted of Milliseconds.
Visualforce code:
<td> {{#if this.CC_Shipment__r.Date_Shipped__c}} {{this.CC_Shipment__r.Date_Shipped__c}} {{else}} - {{/if}} </td>Query:
SELECT CC_Shipment__r.Date_Shipped__c FROM CC_Shipment_Line_Items__cQuery Result:
Output on VF page:
I want to convert this Milliseconds(1569283200000) and show it in Date formate (2019-09-24).
Thank you🙂
Try by using format method of date class in the controller before returning values to vf page.
please refer below links which might help you in this
https://salesforce.stackexchange.com/questions/137577/convert-soql-milliseconds-output-to-mm-dd-yyyy-format-in-visualforce-chart
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_methods_system_date.htm
Hope this helps you
Let me know if this helps you. Kindly mark it as solved so that it may help others in future.
Thanks and Regards
All Answers
Try by using format method of date class in the controller before returning values to vf page.
please refer below links which might help you in this
https://salesforce.stackexchange.com/questions/137577/convert-soql-milliseconds-output-to-mm-dd-yyyy-format-in-visualforce-chart
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_methods_system_date.htm
Hope this helps you
Let me know if this helps you. Kindly mark it as solved so that it may help others in future.
Thanks and Regards
insted of controller Can we do it on VF page?
Thanks.
https://salesforce.stackexchange.com/questions/18958/convert-date-to-milliseconds-and-milliseconds-to-date
Hope this helps you
Let me know if this helps you. Kindly mark it as solved so that it may help others in future.
Thanks and Regards