Forum Discussion

cesarvidril's avatar
11 years ago

Format .now in RFC 3339

Hi   I have to make an atom xml, and asked to add the current time in RFC 3339 but i don't know how. the datetime is "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"   Thanks
  • VarunLuthra's avatar
    VarunLuthra
    11 years ago
    It seems like you forgot to convert your string to date object, convert your string to date using ?datetime("yyyy-MM-dd'T'hh:mm:ss") and then use ?iso_ut on it.

    Let me know if this helps.