Convert Date to XML Date/Time Format

Converting a date such as 1/21/2008 11:09:05 AM to XML Date/Time Format. You might want to put this code into a MapHelper library, then reference it from a Scripting Functoid in a BizTalk Map.


        public static string ConvertDateTimetoXmlDateTime(string inDate)
        {
            try
            {
                DateTime dtIn = DateTime.Parse(inDate);
                return System.Xml.XmlConvert.ToString(dtIn, System.Xml.XmlDateTimeSerializationMode.Local);

            }
            catch
            {
                return "invalid-Date/Time-conversion from value='" + inDate + "'";
            }
        }

ADSUTIL.VBS

MSDN Documentation here: MSDN AdsUtil.vbs According to this TechNet article, you should be able to view, create and delete Virtual Directories in the IIS7 GUI admin tool, but I had difficulties with it. AdsUtil can be found here: c:inetpubAdminScripts (on machines running Windows 2008 and IIS7). It’s a VB/Script (.vbs suffix) and you should always […]