Skip to Content (Press Enter)
OutSystems.com
Personal Edition
Community
Support
Training
Training
Online Training
Developer Schools
Boot Camps
Certifications
Tech Talks
Documentation
Documentation
Overview
ODC
O11
Forums
Forge
Get Involved
Get Involved
Jobs
Ideas
Members
Mentorship
User Groups
Platform
Platform
ODC
O11
Search in OutSystems
Log in
Get Started
Back to Forums
Sattibabu Vatti
4
Views
5
Comments
custom date format function.
Question
hi everyone.
i wnat sustom defined date format function. can anybady help me how to do it
regards,
sattibabu vatti,.
Evert van der Zalm
MVP
Hello Sattibabu,
Don't know what kind of custom date time function format you want, but you could make an public action with date inputs and one output and make that public action set as an function. The you can make the logic you want within the public action.
Kind regards,
Evert
Sattibabu Vatti
hi,
i want :MM:dd:yyyy HH:MM:SS" format .can u help me.
regards,
sattibabu vatti
Evert van der Zalm
MVP
Hello Sattibabu,
Just founded out that MM:DD:YYY is also a available in service center so just go to service center-> administration-> Server Configuration and select you wished date time function.
If you only want to applied that display in one screen you could make a fuction like this:
Make a public action (let name it: dateconversion) and in that public action you set Date1 (dateTime) as an input parameter, and let's say: DateOut (text) as output parameter. In the action you make an assign which does the following:
DateOut = Month(Date1) + "-" Day(Date1) + "-" + Year(Date1) + " " + Hour(Date1) + ":" + Minute(Date1) + ":" + Second(Date1) .
You can set this action as an function and in you screen you can call the action in the expression editor using: dateconversion(<yourdate>).
Hope this is clear enough.
Kind regards,
Evert
Sattibabu Vatti
Evert,
thank you sooooooo much. its working 100%...
Regards,
sattibabu vatti
J.
MVP
You can also use Format_DateTime from the Text-extension.
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
See the full guidelines
Loading...