Date Format is coming wrong

Former Member
Former Member

Hi,

I am using below code in my project .

$!core_v2_language.FormatDate("6/18/2021 2:01:51 AM", "yyyy-MM-ddTHH:mm:ss.fff")

in version 10 it was returning only datetime but in 12 it is returning tag like below it break all my logic written in version 10 so I want to confirm it is a bug or was returned with tag intentionally so that I can write my code accordingly.

<time datetime="2021-06-18T09:01:51.597Z></time>