... overlap at the end/start of the year need to be observed. As per the documentation:
dateValue = '29-Dec-2019';
info dateValue.toString("yyyy"); // returns 2019
dateValue = '29-Dec-2019';
info dateValue.toString("YYYY"); ...
... in this row is start date (retrieved from field "Actual Start Date" on this record)
var v_StartDateValue = ZDK.Page.getField('Actual_Start_Date').getValue();
var v_LocalStartDate = new Date(v_StartDateValue);
...
... but I spent over an hour before I gave up trying to get SWITCH to work. Instead I cheated and got the ordinal in the Transact-SQL query:
CASE DATEPART(DAY, [MyDateValue])
WHEN 1 THEN 'st'
...
We use cookies to improve your experience on our website. By browsing this website, you agree to our use of cookies. Read more about our Privacy Policy.