Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
790 B

  1. <%
  2. Function AppendElement(oParentNode, sChildName, sChildText)
  3. Dim oNode
  4. Set oNode = oParentNode.ownerDocument.createElement(sChildName)
  5. oNode.Text = ReplaceNull(sChildText)
  6. oParentNode.appendChild oNode
  7. Set AppendElement = oNode
  8. End Function
  9. 'Returns a date in ISO 8601 format, for compatibility with XML data types
  10. 'Example: 1988-04-07T18:39:09
  11. Function GetXMLDate(sDate)
  12. Dim sXMLDate
  13. sXMLDate = DatePart("yyyy", sDate) & "-" & Pad(DatePart("m", sDate), "0", 2, True) & "-" & Pad(DatePart("d", sDate), "0", 2, True)
  14. sXMLDate = sXMLDate & "T"
  15. sXMLDate = sXMLDate & Pad(DatePart("h", sDate), "0", 2, True) & ":" & Pad(DatePart("n", sDate), "0", 2, True) & ":" & Pad(DatePart("s", sDate), "0", 2, True)
  16. GetXMLDate = sXMLDate
  17. End Function
  18. %>