Skip to main content
h voeh perguntou em #Formulas

How to convert a text field to date format?  I have the text field textfield_date__c in the format "dd.mm.yyyy"   I tried the following formula in a custom field to get the month:  

IF(

NOT(

ISBLANK(

textfield_date__c

)

),

MONTH ( DATEVALUE(textfield_date__c) ),

null

)

 

This generates an error in the field output. Do you have any idea how to solve the problem?  

9 respostas
  1. 17 de ago. de 2022, 15:23

    Try below formula

     

     text field date: 25.12.2022 

    IF(

    ISBLANK(textfield_date__c),

    NULL,

    MID(textfield_date__c, 4, 2)

    )

     

    Outcome: 12

0/9000