This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
How To: Change Date Type Coming Out of Date Interface Tool to Match In-DB Field Date
A field in my database has dates in the following string format: YYYYMMDD. However, the date format coming out of the Date Interface tool is YYYY-MM-DD. How can I change the date format coming out of the Date interface tool to match the date field in my database? I am pulling the data In-DB, so I don't want to change the date format of my data, which would require me to pull the data out of the database, hence, slowing things downs tremendously.
Product - Designer
In the Action Tool created between the Date interface tool and the Filter In-DB tool, choose the 'Update Value with Formula' action option.
Select the 'Expression - value' in the 'Value or Attribute to Update' section.
In the Formula section at the bottom of the Action tool configuration window, add the following formula:
This formula will remove the dashes in between the year and month and month and day from the date passed in by the Date interface tool in order to match the format of the field in the database. You can use other formulas, such as DateTimeFormat or DateTimeParse to modify the Date interface format to other formats as well.