I want to convert text value into date . Text field contain value= 21-FEB-2022

DATE() function is not working as value is not in proper format

2 Answers 2


You'd have to translate the month into a number:

  VALUE(RIGHT(Field__c, 4)), // year
  CASE(MID(Field__c, 3, 3), 

Use DATEVALUE() to convert into Date. It returns a date value for a date/time or text expression.

Refer this link : Convert to Date Format

  • This would require the text to be "2022-02-21" instead of "21-FEB-2022".
    – Derek F
    May 6 at 13:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.