check if variable value is a valid date

Options
check if variable value is a valid date

This method available on xano? thank you

Comments

  • Michael Udinski
    Michael Udinski Administrator

    ADMIN

    Options
    You can enforce this custom in Xano. What exactly do you mean by valid date? 
  • Jhon Michael Revilla
    Options
    Good day sir  . sorry for late reply. thank you for you response

    inputs: Birthdate type: text

    for example I enter 0 or 01-01 or 09-2022 or 13-13-2022

    how Xano validate those inputs ? 
  • Michael Udinski
    Michael Udinski Administrator

    ADMIN

    Options
     the text data type can be anything. 

    It depends on what you want to define the rules of what you want to enforce. You can use preconditions to with the aid of the filters to help enforce formats. 

    You might also consider using a date or timestamp data type for a field like birthdate.