Guest miva Report post Posted 11/09/2006 04:20 AM With VG for Dialogic 6.0.2257, we are trying to use a Say Numbers Module to read back todays date by using the following expression: $RV_Month/$RV_Date/$RV_Year It's currently not working because the function expects 2 digit days and months (i.e. MM/DD/YYYY), however, because it is the 9th day today, it is returning it as 11/9/2006. See attached event trace log. If we change the expression to: $RV_Month/0$RV_Date/$RV_Year (note the 0) It reads out correctly. Obviously this will only work correctly for days 1 to 9 in a given month. We've changed the local settings of the date format to be MM/DD/YYYY but this made no difference. Also, how would we go about reading out yesterdays date in a similar fashion. Say_Date.txt Share this post Link to post
SupportTeam Report post Posted 11/09/2006 06:03 AM You could try using $RV_DD - this RV will be replaced with a two digit day of month. Not sure if $RV_DD is available in v6.0.2257 - you may need to update to latest version. Also, how would we go about reading out yesterdays date in a similar fashion. You'd need to do some VBScript work to calculate that... In VBScript use this expression to get yesterdays date: Now - 1 then use the Month(), Year() and Day()/Date() functions to retrieve the relevant values. You then need to save them in an RV and then use that RV in Say Number module.. You could just put that VBScript into a new function – call it SayYesterdaysDate or something like that and add that function to the lib_num2wav.vbs library - and then you would be able to call the SayYesterdaysDate directly from Say numbers module... Share this post Link to post