Solved! Go to Solution.
Yes, this is especially applicable to the output of the Google Analytics Connector in Alteryx which outputs for the Date an Integer of 4 formatted as yyyymmdd.
Bring a Select tool after the GA Connector to convert the Date field to a String then the Date time tool to convert the Date field to a format Alteryx will understand as a date...
Hello
hope you can help me I am trying to convert Date serial Number to a date IE 42333 = 25 Nov 2015, the cell itself is a string
I have tried using the date convert tool but it did not work
any idea to help me?
many thanks
Denny
Sorry - like this.
DateTimeAdd("1900-01-01 00:00:00",ToNumber([your field])-1 ,"days")
@danielbrun2 beat me to the answer, but I thought I would add a couple of thoughts...
If your field is actually "IE 42333", then the initial step would be to convert that string to an integer using...
ToNumber((Replace([Date], 'IE ', '')))
Also, your date format appears to be how Excel handles dates, with the internal 'serial number' that adds to how many days it has been since the beginning of last century.
If that's the case, you should consider the anomolies around that and a good article on the community is at http://community.alteryx.com/t5/Data-Preparation-Blending/What-date-ranges-are-allowed-issues-readin....
Actually if you use the formula as given (because of the anomolies), you will get '2015-11-26' which is one day off. You may need to adjust your formula by a day (i.e., subtract 2) to get the answer you are wanting.
Currently am having the same situation, however I am receiving the date field as a double - any suggestions on how I might be able to convert this to a date field I can use?
Hi,
You can use the same formula as mentioned above: DateTimeAdd("1900-01-01 00:00:00",ToNumber([your field])-1 ,"days")
Could you perhaps post 1 date value for reference.
Best,
Daniel
The date field looks the same way '20180813' however was coming in with a double data type.
I somewhat had come up with a bit of a solution after I asked and then watched the live training yesterday on date and time parsing. What I ended up doing was converting the field to a string and then used the DateTime parsing tool to convert it into a usable date format.