In the Notification message of a workflow, how can I convert <% =Operation.TargetToSet["accountExpires"] %> into a human readable date?
In the Notification message of a workflow, how can I convert <% =Operation.TargetToSet["accountExpires"] %> into a human readable date?
Hi, Ryan.
You can use the .NET DateTime::FromFileTime() method in notification C# code. Unfortunately I don't have an example at my disposal, but it's going to look something like this (untested/verified code):
DateTime accountExpiration = DateTime.FromFileTime(Operation.TargetToSet["accountExpires"])
Hope that's a starting point for you!
Shawn.
Hi, Ryan.
You can use the .NET DateTime::FromFileTime() method in notification C# code. Unfortunately I don't have an example at my disposal, but it's going to look something like this (untested/verified code):
DateTime accountExpiration = DateTime.FromFileTime(Operation.TargetToSet["accountExpires"])
Hope that's a starting point for you!
Shawn.