Link to home
Start Free TrialLog in
Avatar of rporter45
rporter45

asked on

String field convert to date

I have a string field, 12.30.14 that I need to format into a date field mm/dd/yy.
Using the formula below, it returns 3/30/12,

Can you identify what I am doing wrong?
Thanks!

if isnull({@Split Left Email Name}) then Date(0,0,0)

else

if ({@Split Left Email Name}='') THEN Date(0,0,0)

ELSE

Date(ToNumber(LEFT({@Split Left Email Name}, 2)),
      ToNumber(Mid ({@Split Left Email Name}, 4, 1)),
     ToNumber(Mid ({@Split Left Email Name}, 4, 2)))
ASKER CERTIFIED SOLUTION
Avatar of Mike McCracken
Mike McCracken

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rporter45
rporter45

ASKER

Works perfectly!! Thank you,

Colleen Slater