You need to sign in to do that
Don't have an account?
Smurfet15
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
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