[cisco-voip] IPCC Express Script date format

Bryan Nowak n68851 at hotmail.com
Tue Jul 22 15:30:23 EDT 2008


I'm sure there's a better way to do it, but here's an example of a setting a string variable to put today's date in UK format:
 
String.valueOf( D[now] .dom) + "/" + String.valueOf( D[now] .month) + "/" + String.valueOf( D[now] .year)
 
If you already have a string variable with the date string in it, try:
 
Set strDateUK = (strDateUS.substring(3,5)) + "/" + (strDateUS.substring(0,2)) + "/" + (strDateUS.substring(6,10))
 
Bryan> Date: Mon, 21 Jul 2008 17:29:12 +0100> From: kevin at gannons.net> To: cisco-voip at puck.nether.net> Subject: [cisco-voip] IPCC Express Script date format> > I have a script that records some stats to file using keyword> transform and a write to> file/DB. The problem is the third party application needs the dates in UK format> rather than the US format ?> > Any help much appreciated.> > Thanks & Regards> Kevin> _______________________________________________> cisco-voip mailing list> cisco-voip at puck.nether.net> https://puck.nether.net/mailman/listinfo/cisco-voip
_________________________________________________________________
Use video conversation to talk face-to-face with Windows Live Messenger.
http://www.windowslive.com/messenger/connect_your_way.html?ocid=TXT_TAGLM_WL_Refresh_messenger_video_072008
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://puck.nether.net/pipermail/cisco-voip/attachments/20080722/efcaecfb/attachment.html>


More information about the cisco-voip mailing list