You need to sign in to do that
Don't have an account?

Salesforce formula to convert text to date
Hi ,
I need help on the following requirement as follows,
I have a text field called "Latest date" which has values in "March -2017" format
I want another formula field to convert the above text to dd/mm/yyyy format
The date can be 1st of every month
I shouldnt make any changes to the existing field and need this functionality in a new field
Help me how to acheive this
Thanks in Advance
I need help on the following requirement as follows,
I have a text field called "Latest date" which has values in "March -2017" format
I want another formula field to convert the above text to dd/mm/yyyy format
The date can be 1st of every month
I shouldnt make any changes to the existing field and need this functionality in a new field
Help me how to acheive this
Thanks in Advance
All Answers
You need a REGEX function, please try the below May I suggest you please check with below links which might help you.
Hope this code and links will help you to fix your issue. make it solved if its works for you.
Thanks,
Rakesh Thota.
I tried the above formula by creating a new formula date field but got the below error
REGEX may not be used in this type of formula
Try this formula field having return type as text
Here Latest_date__c is your custom field, so replace it with you field api name.
You can further convert it to date type.
All the best!!
Thanks
Gulshan Raj
Thanks for the formula , its working for some values
for eg : March - 2017 its coming correctly as 01/03/2017
but if i give January -2017 it comes as 01/01/y-2017
you are a real genius
Thanks a lot