Microsoft
Software
Hardware
Network
Question : Xquery assign datetime variable
hi,
i have the following code
current-time() + xs:dayTimeDuration(string(
concat('PT
', $i, 'M')))
which uses the current-time() function from xquery and adds mins to it.
let's say i want to subsitute the current-time() with a date time in string format
25/12/2006 15:00:30
how do i go about doing it?
thanks.
Answer : Xquery assign datetime variable
given that the time value lands in a variable $time
let $time := "25/12/2006 15:00:30"
you can cast to the dataTime format like this
xs:dateTime(replace($time,
'(\d+)/(\d+)/(\d+)\s+(.*)$
', '$3-$2-$1T$4'))
Random Solutions
Is there a way to change the Helo or EHLO on the exchange 2007 sp2 server?
Hyper Terminal v. 6.1 (Build 7600) running on Windows 7 Professional most often closes after clicking on File and then Open-How can I fix this?
How to get query cretaed by the prepare statement in PDO
Aggregate
Suspended VLAN
Message size limit exceeded, but I've checked the settings in Exchange 2007 ??
input text box
vbscript copy files to location based on user input
error handling
Ping remote user?