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
Smurfet15Smurfet15 

date format issue

Hi guro,

I have a requirement display: Contract Date - 25/01/2015 to 24/01/2016

my code : contact_date = 'Contract Date'  + '  - ' + string.valueOfGmt(s_date) + ' to ' + string.valueOfGmt(e_date);
Resulted to : Contract Date - 25/01/2015 00:00:00 to 24/01/2016 00:00:00

Tried this : contact_date = 'Contract Date'  + '  - ' + s_date.format('dd/MM/yyyy')  + ' to ' + s_date.format('dd/MM/yyyy')
but resulted to different date.

first code is fine but need to remove the time 00:00:00.

Thank,
Smurfet