1

I create an approve button in a form that shows at what date the item was approved, however I am getting the correct date but the time is always 0:00:00 enter image description here

This is a screen of the workflow:

enter image description here

6
  • Is your field is datetime? as i can see it's getting different zones for time than default date time
    – Hardik
    Jun 13, 2016 at 17:32
  • Yeah it's a dateTime field I created in infopath 2013
    – Anthony
    Jun 13, 2016 at 17:36
  • Unfortunately Sharepoint designer's "Today" function only captures the date but not the time. I would suggest creating a variable that is set to the time when the Workflow is started. And then using that variable to set your field. Of course it won't be perfectly accurate but it is close enough. Jun 13, 2016 at 17:37
  • You can create a field from SharePoint list & update using same variable. if it wont work than you can use the Modified value in the filed as item is going to be updated after the workflow.
    – Hardik
    Jun 13, 2016 at 17:39
  • Okay, will try both things and will let you know
    – Anthony
    Jun 13, 2016 at 17:53

1 Answer 1

2

I can give you 2 easy options:

  1. Set SecurityManagerApprovalTime to the Workflow Context: Date and Time Started variable. This is the date and time when the workflow started which should work if the workflow starts when the security manager approves/rejects.

  2. Assuming the workflow is started on SharePoint list items and the approval action is modifying the items, then you can use the Modified field of the items to get the date and time.


If none of these work for your scenario, in order to help please provide more details about how the security manager approves and who and when starts the workflow.

1
  • Suggested you the same but in comments...:)
    – Hardik
    Jun 13, 2016 at 18:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.