While working with integrations with some 3rd party application to FO, we might have scenarios where we get the current timestamp in Epoch/Unix Format. And we may need to flow that value to FO as a date time or just date. In that case, to use that in FO, we need to do some conversion.
We have a simple logic which we can use for this conversion.
Let's say we are getting the epoch value as a string in our payload. Then we can convert first that into real and pass the value into below method and then this method returns the final output in utcdatetime format.
If we make this as above, we can call this method wherever required.
Happy Learning :)