I want to convert date 13-06-2025 10:50:28 format into this format 2025-06-13T10:50:28
Hello,
FormatDateTime(DateTimeVar, "yyyy-MM-ddTHH:mm:ssZ"); // UTC
You can refer to the documentation for more details.
https://success.outsystems.com/documentation/11/reference/outsystems_language/logic/built_in_functions/format/#FormatDateTime
You can refer to the forum discussion. Hope it helps.
https://www.outsystems.com/forums/discussion/64343/set-text-do-datetime-according-a-specific-format/
Thank you.
Hi @Prasanth S,
Please refer to the forum discussion,
https://www.outsystems.com/forums/discussion/99788/get-current-date-time-in-iso-format/
Thanks,
Supriya
Hi @Prasanth S
Try this:
First Use this
DateTime = DateTimeParseExact("13-06-2025 10:50:28", "dd-MM-yyyy HH:mm:ss")
Than convert to your Format
FormattedText = TextToDateTime(DateTimeToText(DateTime, "yyyy-MM-dd\THH:mm:ss"))
If you have any further questions, please don't hesitate to reach out.
Thanks
Gokulprasanth M
Hi @Prasanth S ,Please refer this documentation for converting the date format from one another format by using built in function date format FormatDateTime(DateTime, Text) Refer:Built -in -function--Date format
Hi @Prasanth S ,
You can use this convert option to change the format based on your requirement
DateTimeToText(DateTimeVariable, "yyyy-MM-dd\THH:mm:ss")
Hi @Prasanth S ,Please refer the documentation FormatDateTime to convert date format.
FormatDateTime(DateTime, "yyyy-MM-ddTHH:mm:ss")