Forum Discussion

Calvin's avatar
Calvin
Contributor
12 years ago

How to convert REST API time string to datetime

Hi there,   I want to filter messages by time period. Which more specifically, are the message ids returned by /ratings/key/forum_topic_metoo/ratings/leaderboard This API seems not receiving max_...
  • ChhamaJ's avatar
    12 years ago

    Hey Calvin,

     

    As of release 13.2 we have support to parse string to ISO date format. You need something like this

     

    <#assign my_date = datesupport.parseAsIso8601("2012-12-10T03:52:06+00:00") />

     Hope this helps.

     

    Regards,
    Chhama