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

I have one text field , but i want only month like as jan,Feb,mar etc............
Hi All,
I have been facing the issue while writing the formula field taken the return type is text
here is the formula
The data should be like dis 3/30/2016 in example__c, Getting error as Syntax error
Adv Thnx
Siv
I have been facing the issue while writing the formula field taken the return type is text
here is the formula
CASE(MONTH(example__c) , 1, "January", 2, "February", 3, "March", 4, "April", 5, "May", 6, "June", 7, "July", 8, "August", 9, "September", 10, "October", 11, "November", 12, "December", "None" )
The data should be like dis 3/30/2016 in example__c, Getting error as Syntax error
Adv Thnx
Siv
if your field is a text field and then you can use below formula for month. here you can replace your field inplace of SicDesc. this formula can handel both 03/23/2016 and 3/23/2016 also.
please do let mek now if it helps you.
Thanks,
Debasis
All Answers
You have to convert the text field to date field then only the month() formula will work syntatically. try the below updated code
Let me know if you have any issues.
Regards,
Sai Krishna Tavva.
is example__c is a date type field?
To take the month part from a date fiedl you can use below code
as example__c is a date field , i am able to save it
You dont need to convert the text field to date field. the formula function DATEVALUE() will the converts the text value to date value. then use the value in the month() formula field. try the below which will works.
here in my code SLASerialNumber__C field is text datatype field. you need to convert the value of the field to date format and then pass the value to the month() function.
Regards,
Sai Krishna Tavva.
Please try with the below mentioned formula
if your field is a text field and then you can use below formula for month. here you can replace your field inplace of SicDesc. this formula can handel both 03/23/2016 and 3/23/2016 also.
please do let mek now if it helps you.
Thanks,
Debasis
we can optimize above formula also
if your field is a text field and then you can use below formula for month. here you can replace your field inplace of SicDesc. this formula can handel both 03/23/2016 and 3/23/2016 also.