Hi PaoloT ,
I have referred below links for date manipulation.
http://community.lithium.com/t5/Developers-Discussion/datesupport-FreeMarker-context-object-and-addDay-method/m-p/128607#M4914
http://community.lithium.com/t5/Developers-Discussion/Comparing-Last-Login-Date-to-Current-Date/m-p/32519/highlight/true#M390
Tried below approaches :
<#assign date_weekago_number = datesupport.now.addDay(-90).millisecondsAsString?number />
which returns milliseconds as String : 1422380763694
<#assign date_weekago_number = datesupport.now.addDay(-90).getDateAsString() />
which returns date as String in format : 01-27-2015
To frame a LiQL query, I want to convert above strings (date and ms), in requried format.
But freemarker, expects string input in pre-requisite format to convert it into date object.
http://freemarker.org/docs/ref_builtins_string.html
Can you please suggest approach to convert above Strings in required date format.
"post_time" : "2013-09-09T13:42:08.762-07:00",