To simplify this process, a custom function called addWeekToDate can be implemented. This article will explore the addWeekToDate function, its implementation, and its usage within an EFT template. Understanding the addWeekToDate Function: The addWeekToDate function takes an input date and returns a new date that is one week ahead. Let’s break down the implementation step… Continue reading Date Manipulation with the addWeekToDate Function in FreeMarker
Tag: FreemarkerFunctions
Underscore.JS – invert method
Invert method swaps the key and values of object passed. var result = _.invert({one: 1, two : 2, three: 3}); console.log(result); // Example 2 result = _.invert({ name: ‘Sam’, age: 30}); console.log(result); Output { ‘1’: ‘one’, ‘2’: ‘two’, ‘3’: ‘three’ } { ’30’: ‘age’, Sam: ‘name’ }