0

I need to add one extra day to the specific day ,kindly help me

let say I want to add one day to this date "31/12/2020"

enter image description here

  • Perhaps this will help:https://stackoverflow.com/questions/2608462/freemarker-velocity-date-manipulation – soorapadman Nov 17 '20 at 10:31
  • hi @soorapadman, thanks for reply,getting formatting error while saving – user2703469 Nov 17 '20 at 11:13
  • am trying something like below <#assign dateToday = renewalDate /> <#assign extraday = dateToday + (1 * 24 * 60 * 60 * 1000) /> <#assign neewdate=extraday?number_to_datetime> but its throwing the error – user2703469 Nov 17 '20 at 17:08
  • @user2703469 You need to convert the date to number via `?long` first if you want to do math like that. However, I would be very careful, as you aren't dealing with time instants here, but with something that looks like a local date. Therefore, daylight saving time changes can bite you. So move to noon from midnight. – ddekany Nov 20 '20 at 16:00

0 Answers0