Does anyone know how to convert a human-readable date text such as "Jan 10, 2024 10:42 am (PST)" into a Date value (i.e. 01/10/2024)?
2 risposte
Are you asking to covert a Text Field to Date Field with formula? Or what context you need the conversions? If it’s related to formula, here is the example:
DATE(
MID(Text_Date_Field__c, 9, 4),
CASE(LEFT(Text_Date_Field__c, 3),
"Jan", 1,
"Feb", 2,
"Mar", 3,
"Apr", 4,
"May", 5,
"Jun", 6,
"Jul", 7,
"Aug", 8,
"Sep", 9,
"Oct", 10,
"Nov", 11,
"Dec", 12,
0
),
VALUE(MID(Text_Date_Field__c, 5, 2))
)