TeleFlow Forums
http://teleflow.org/phpbb/

formatting date for "say" step
http://teleflow.org/phpbb/viewtopic.php?f=10&t=577
Page 1 of 1

Author:  thomasins [ Mon Mar 30, 2009 1:52 pm ]
Post subject:  formatting date for "say" step

I have customized the date settings on my computer via control panel, regional and language options. They are now YYYY/MM/DD. (see attachment)
The date dislpays in this format but when the simulator runs the program it shows the format YYYY-MM-DD (see below). How do I correct this.




Script code is 'EASYPAY DUE DATE'
2009/03/28 15:22:16.602: Script code 'EASYPAY DUE DATE' corresponds to file 'vox\eng\scripts\easypay due date.wav'
2009/03/28 15:22:16.602: Playing 'C:\Program Files\TeleFlow\Applications\easypay\easypay\vox\eng\scripts\easypay due date.wav'
2009/03/28 15:22:18.305: [61] Say
2009/03/28 15:22:18.305: Text '@duedate' evaluates to '2009-03-28'
2009/03/28 15:22:18.305: ERROR: Date '2009-03-28' must be of format YYYY/MM/DD
2009/03/28 15:22:18.305: FATAL
2009/03/28 15:22:18.305: Attempting to jump to Fatal Error Global Event label: 'APPLICATION_ERROR'

Attachments:
easypay date issue.pdf [33.32 KB]
Downloaded 832 times

Author:  Chris [ Fri Apr 03, 2009 12:47 pm ]
Post subject:  Re: formatting date for "say" step

First off, if the date is being pulled into TeleFlow from an external data source, TeleFlow will pull it into a variable in whatever way that data source provides it. (I.e. TeleFlow doesn't manipulate the data as it populates it to its variables.)

This means you might need to use formatting functions as you bring the data in. (If you are using a query, for example, most databases have date formatting functions you can use to change the resulting date to whatever format you want, such as YYYY/MM/DD)

Having said all that, we have just recently introduced some additional date/time features to TeleFlow that may help you. The most applicable is that TeleFlow now supports dates formatted as either YYYY/MM/DD and YYYY-MM-DD, more or less interchangeably. Where did you download/how did you acquire TeleFlow? I can probably provide you an update package link with a version that would have simply played your YYYY-MM-DD date.

Author:  thomasins [ Fri Apr 03, 2009 2:18 pm ]
Post subject:  Re: formatting date for "say" step

I changed the formatting from date to text in my database and that resolved my issue. I downloaded my version of Teleflow in early January '09,from the Teleflow.org site.

Author:  Chris [ Mon Apr 06, 2009 12:46 pm ]
Post subject:  Re: formatting date for "say" step

It sounds like your issue is resolved.

However, if you are interested, the patch I mentioned (that introduces a number of date/time features/functions, including the ability to use dates with - or /, rather than just the /) will be available in the next few weeks.

I will post the link to the update package here when it becomes available.

Author:  Chris [ Tue Apr 14, 2009 12:55 pm ]
Post subject:  Re: formatting date for "say" step

Here is the TeleFlow patch I mentioned previously:

TFUpdatePack2009-0408.zip

I would recommend backing up your \Program Files\TeleFlow directory before replacing the files there. You would also do well to check the change log prior to any installation/patch to see how any of the changes impact your application(if at all), in addition to performing any evaluation/development system testing prior to installing the update on your production system.

Page 1 of 1 All times are UTC - 8 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/