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
Syslog Message
Website name in other country question about registering if you live in USA
Error - Invalid Use of Group Function
How can i implement the same desktop back ground image on all the computers on my domain
Auto- Numbers in oracle
asp.net I need to know how to auto step or goto the next url or page after clicking on enter.
Zindus Google and Zimbra contact sync for Thunderbird problem
How to find an address with Google maps in ASP?
Create a new document from sections of a templated document
SQL Query Question