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,.
2025-11-03 12-56-18
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
UserImage.jpg
Sattibabu Vatti
hi,

i want :MM:dd:yyyy  HH:MM:SS" format .can u help me.

regards,
sattibabu vatti
2025-11-03 12-56-18
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
UserImage.jpg
Sattibabu Vatti
Evert,


thank you sooooooo much. its working 100%...

Regards,
sattibabu vatti
2016-04-21 20-09-55
J.
 
MVP
You can also use Format_DateTime from the Text-extension.
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.