At present, the template tams don't have a date module to get the date. There are some date-related templates, but not useful for your purposes.
<br>
<br>Generally, we set things up like this:
<br>
<br>Play: Describe to the caller what you need a date for, and that they should follow these instructions to enter it:
<br>Play: Please enter the four digit year now.
<br>Get TT String to collect the 4 digits into @TT_YEAR variable.
<br>Play: Now enter the 2 digit month.
<br>Get TT String to collect the 2 digits into @TT_MONTH variable.
<br>Play: Now enter the 2 digit day.
<br>Get TT String to collect the 2 digits into @TT_DAY variable.
<br>
<br>Finally, to turn those three collected variables into a single date variable, use Set Local or Set Global, and set your variable like this (something like it, anyway):
<br>@MY_DATE = @TT_YEAR/@TT_MONTH/@TT_DAY
<br>
<br>@TTInputDate was an example of a variable you might create and set in a TeleFlow application. (much like @MY_DATE, in the example I have provided)
<br>
<br>Converting the YYYY/MM/DD date format of TeleFlow into a date field (I assume you mean to insert/update a date field in a database) depends on the database itself. Some have special functions you need to use, to turn a text or character string into a date. When updating a date field, you must enclose your TeleFlow variable in quotes, as well. (Eg: UPDATE my_table SET date_field = '@MY_DATE' WHERE conditions)
|