Forum Discussion
Extracting Date from Text Field
- Anonymous3 years ago
Hi tamerj1
It shows an error that 'Cannot convert type '' Text to Date type'.
But I was able to solve the problem by using the formula:
------------------------------------
Legend = IF (Database[Date Text column]<>BLANK(), IFERROR(DATE(YEAR(Database[Date Text column]),MONTH(Database[Date Text column]),DAY(Database[Date Text column])),BLANK()),BLANK()) //Converting Text field to Date
-----------------------------------------
and then converting the Data Type to 'Date' in Column Tools tab.
Thanks a lot for your help! I really appreciate it!
Hi Anonymous
you can try DATEVALUE function:
DATEVALUE ( Database[Date Text column] )
Hi tamerj1
It shows an error that 'Cannot convert type '' Text to Date type'.
But I was able to solve the problem by using the formula:
------------------------------------
Legend = IF (Database[Date Text column]<>BLANK(), IFERROR(DATE(YEAR(Database[Date Text column]),MONTH(Database[Date Text column]),DAY(Database[Date Text column])),BLANK()),BLANK()) //Converting Text field to Date
-----------------------------------------
and then converting the Data Type to 'Date' in Column Tools tab.
Thanks a lot for your help! I really appreciate it!