SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top


How can I check for an empty date condition in a SharePoint Designer Workflow?


I have a list called "Project" with multiple date fields. I have a calendar called "Project Scheduling" where I want to copy those dates. For every pair of two dates (such as "Construction Start"/"Construction End" and "Design Start"/"Design End") for a single "Project" listitem I want to create one list item in the calendar.

I do this by creating a workflow that triggers on add/change and will push the dates to the calendar if both dates in the pair have a value. To check for null dates I have to first store the string values of the dates in workflow variables because you cannot use the "is empty" condition with a date field. However, when I try to check for "is empty" on the date string values the string returns as not empty and it tries to execute my code for creating the item in the "Project Scheduling" calendar. For some reason that fails even though the string is not empty. I would assume that it would succeed seeing as how there was a value in the date string.

share|improve this question
up vote 3 down vote accepted

I tried logging the date string values before executing the creation of the listitem in the "Project Scheduling" calendar but the workflow would error without logging. Then I removed the listitem creation part and the logging worked. It was there that I noticed that the date values were set to 1/1/0001 12:00:00 AM.

Workflow History Date Values

I found the same problem on Cliff Chaney's Blog and he provided the solution of:

  1. Converting the date to a short date
  2. Storing the date in a string workflow variable
  3. Comparing the string workflow variable to "1/1/0001"
share|improve this answer

Since a date field defaults to 1/1/0001 12:00:00 AM, to check for null dates set the workflow to check to see if the specified field date is less than the Created date. If the date field is less than the Created date then you know the field is empty.

share|improve this answer
...which excludes anyone in the - very likely - scenario of wanting to create an item that refers to an earlier date. – underscore_d Oct 19 '15 at 14:07

Date fields are never truly empty, so the option doesn't exist. An "empty" date field is actually set to 1/1/0001.

So for your specific project, forget the whole "storing the string values of the dates" thing, that won't work. Instead, set up the workflow to perform the action if both Date fields are greater than 1/1/0001.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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