Hello,
I have a Formula field called Birthday this Year which just takes the value of the standard birthdate field and changes the year to this year:
DATE( YEAR( DATEVALUE( NOW() ) ) , MONTH( Birthdate ) , DAY( Birthdate ) )
I have a custom text field that I'm attempting to swap out the standard Birthdate field with in this formula above, but I can't get any output. I'm not sure if it's because the custom field is actually a text field, but there are properly formatted date values in that text field. Here's my formula:
DATE( YEAR( DATEVALUE( NOW() ) ) , MONTH(DATEVALUE( Account.SL_BWM_Birthdate__c )) , DAY(DATEVALUE(Account.SL_BWM_Birthdate__c )))
Any ideas how I can transform a date in a text field into a date that's able to be pulled in above?
Thanks,
Ashley
The key issue is likely the text-to-date conversion and whether the stored format matches what DATEVALUE expects. I recently tried a similar formula and found that checking the exact text format first made the fix much easier; keeping date fields as true dates is usually the simplest approach.