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

Date conversion

$
0
0

Hi, I've been looking through the forums but haven't quite figured out my date conversion problem.

 

I've gotten the date into this format:

 

3 Feb. 2008

 

and have tried this formula to get it into a date format:

 

DateTimeFormat(DateTimeParse([Date2],'%d/%b/%Y'),'%m-%d-%Y')

 

but I get null values where the day is a single digit, e.g.: 3 Feb. 2008

 

Specifically, I get a message that the day of month value is out of range 1..31.  Somehow, when the day is a single digit, the month value isn't seen properly.

 

Thank you for any help.


Viewing all articles
Browse latest Browse all 4999

Trending Articles