7 réponses
Hi Scott,
Looks like the data type of your ship date field is text. So going forward you have two options:1. You can create a formula field with return type text, and this formula:
MID(Ship_date__c,5,2)+"/"+
RIGHT(Ship_date__c,2)+"/"+
LEFT(Ship_date__c,4)
But since it will be a text field so you won't be able to perform operations on this field like you normally do on a date field. So therefore, comes the second option.
2. So instead of creating a formula field with return type text, create a formula field with return type Date, and use this formula.
DATE(
VALUE(LEFT(Ship_date__c,4)),
VALUE(MID(Ship_date__c,5,2)),
VALYR(RIGHT(Ship_date__c,2))
)