Stump the Panel » SharePoint Workflow for All Users

Can you suppress the time from displaying in a SPD workflow email?

(4 posts)
  1. I have a custom SharePoint Designer workflow that sends an email to users. The email includes current item lookups for a variety of fields from my list--including a Due Date date/time field.

    Since we suppress the time display for this Due Date field in the SharePoint web interface, the database value for the time is always midnight. I'd prefer not to display the time in my email but keep the date. Is there any way to prevent the time from displaying?

    Posted 3 weeks ago #
  2. Unfortunately, SharePoint Designer doesn't do formatting OOTB.

    So, the best way to solve your issue is to add a calculated field to your list and hide it from your users.

    1. If your list isn't set up to manage content types, you will want to change that, at least momentarily.
      1. Click on Settings -> List Settings
      2. Click on Advanced Settings
      3. Next to Content Types, set Allow management of content types? to Yes
      4. Click OK
    2. In List Settings, click on Create column
    3. Name the field (i.e. strDueDate)
    4. Choose Calculated (calculation based on other columns)
    5. Enter the following formula into Formula:
      =TEXT([Due Date],"mm/dd/yyyy")
      (or whatever format you want to display)
    6. Set the data type to Single line of text
    7. Leave Add to all content types checked
    8. Uncheck Add to default view
    9. Click OK
    10. Back on the List Settings page, under Content Types, click on the link for your content type (e.g. Item)
    11. Click on the name of your new column (e.g. strDueDate)
    12. Under Column Settings, set This column is: to Hidden (Will not appear in forms)
    13. Click OK
    14. If you were already managing content types, skip the next set of sub-steps
      1. Go back to the List Settings page and click on Advanced settings
      2. Change Allow management of content types? back to No
      3. Click OK

    Now from SPD you can use your strDueDate field to display the date without the time.

    Posted 2 weeks ago #
  3. Works perfectly - thanks for the assist!

    Posted 2 weeks ago #
  4. My pleasure!

    Blessings,
    Jim Bob

    Posted 2 weeks ago #

RSS feed for this topic

Reply

You must log in to post.