41
Views
6
Comments
Date time function
Question
Application Type
Mobile

I want to convert date 13-06-2025 10:50:28  format into this format 2025-06-13T10:50:28 

2025-03-12 07-08-15
Nilesh Trivedi

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.

UserImage.jpg
Supriya Malla
2022-07-05 06-54-15
GOKULPRASANTH MUNUSAMY

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

2024-01-04 09-21-21
Venkatesaiya

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

UserImage.jpg
Suren

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")



2024-08-08 11-25-20
Santhosh Mathivanan

Hi @Prasanth S ,

Please refer the documentation FormatDateTime to convert date format.

FormatDateTime(DateTime, "yyyy-MM-ddTHH:mm:ss")

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.