[cisco-voip] UCCX scripting string to date format

Matthew Saskin msaskin at gmail.com
Fri Jun 5 15:47:30 EDT 2009


You could also do the date transformation in the SQL query, which may
be a bit more efficient.

-matt


On 6/5/09, Adam Blomfield <adman at adman.net> wrote:
> You have to use the string.substring function to break that field out into
> it's seperate components and then piece them back together again with the
> slashes into another string, which you can then turn into a date variable. I
> had to do something similar recently and it works just fine. Let me know if
> you would like a sample aef.
>
> -Adam
>
> On Fri, Jun 5, 2009 at 1:33 PM, Mike O <mikeeo at msn.com> wrote:
>
>>  I'm pulling a date from SQL in the following format "YYYYMMDD" (20090619)
>> how can I read this back to the caller? I tried using the set command to
>> change it to DATE type and the script bombs.
>>
>> Thanks,
>> Mike
>>
>> _______________________________________________
>> cisco-voip mailing list
>> cisco-voip at puck.nether.net
>> https://puck.nether.net/mailman/listinfo/cisco-voip
>>
>>
>


More information about the cisco-voip mailing list