Quantcast
Channel: Data Preparation & Blending discussions
Viewing all articles
Browse latest Browse all 4999

Convert CSV String to Date/Time

$
0
0

I have an issue when trying to convert a date/time from a CSV file (which is imported as a string) to an actual date.  I have tried searching on here but cannot find a solution that fixes my problem (i apologize if i missed a post!).  The format for my dates are as follows:

 

Dates:

11/14/2016 8:26:38 AM
11/15/2016 9:14:33 AM
11/16/2016 11:27:56 AM
11/16/2016 12:20:29 AM
11/21/2016 1:37:13 PM

 

I started off by using the DateTime Parse function but it did not work because of the format of the string.  Then i found a great post and macro called BB Date.  This tool worked great except it does not correctly convert a date/time in the 12:00 AM hour.  For some reason, it converts the PM times to the appropriate time (13:37:13 for the last date in the list above) but not 12:00 AM.


Does anyone know how i can easily transform this string into an actual date?


Viewing all articles
Browse latest Browse all 4999

Latest Images

Trending Articles



Latest Images