Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events

Date Calculations

Avatar

Former Community Member
I am having trouble, I have a date time field and want to insert another datetime field 280 days after the first one. I then want a numeric field that calculates the number of weeks difference from the current date and the second datetime field.



I have tried to put the script $ = num2date(DateTimeField+280) in the DateTimeField4 but get no results.



Can anyone help?
1 Reply