Skip to main content

How to convert content of UDF/userfield into numeric datafromat for use in if/then statement

Comments

2 comments

  • Martin Heigl

    if you format a string field with date format string, the system convert the field to Date and then back to string with defined format

    Example:

    messagebox=<udf1,yyyymmdd> 

    Convert field to date and back to string in format year - month - dd

     


    Now you can use this as number
    if you use n< n= or n>

    if <udf1,yyyymmdd> n< <today,yyyymmdd> then
      messagebox=Date in past not allowed ...
    end if

    regards
    Martin

  • Patrick Herr

    Dear Martin,

     

    thank you very much!

Please sign in to leave a comment.