Hi all
i have a requirement that user entered date time field to json format "2022-08-15 00:00:00.0" how to convert it , from appian end,
i tried text function - text(now(),"yyyy-mm-dd HH:MM:SS") but it returns current date time it should be user entered.
Thanks In Advance
Discussion posts and replies are publicly visible
Can you provide a code snippet of what you a re currently working on?
Check these examples for how to store a user entered value in a different format: https://docs.appian.com/suite/help/22.3/fnc_evaluation_save.html#examples
The simple answer here is that when you call the text() function, you wouldn't pass in "now()" as in your example if you're wanting to convert a user-entered datetime value to that format - you would need to actually pass the user-entered value itself.