We have templates set up with a date range field that is currently text for various reasons. It can either contain a single date or a date range. It reads either:
Date Range:
02/18/13 - 05/04/15
Or
Single Date:
06/17/2013
We want to convert these into 2 separate date fields - start date and end date, that are actually date fields and format as such.
I created the 2 date fields and added them to the template. I have a workflow that finds a series of files, and for each determines if the date is a single date or a range and then breaks up the date text using regular expressions.
All goes well until I get to assigning the date field and I get an error every time that the value I am trying to assign to the new field is invalid. I tried omitting the "/" and just inserting the numbers, inserting it into a token and tagging the token as a date prior to assigning to the date field. Nothing is working, I keep getting either a 9013 or a 9017 error.
Does anyone have suggestions or can point me in the right direction? Thanks!