Resolved bugs

Release date:Monday, February 15, 2010
C1 Version:Composite C1 1.2 SP4 (1.2.3698.30865)...
DescriptionCall of QueryStringXmlFormattedDateTimeValueFunction generates an exception in preview of xslt functions.
Known work around:The work-around in this case may be creating a similar C1 Function.
This can be done using C#:

In the /App_Code folder, create a file "GetDateTimeFromQueryString.cs" and paste in the following code:
Code:
using System;
using System.Web;
using System.Xml;

public class DateParser
{
    public static DateTime GetDateTimeFromQueryString(string ParameterName, DateTime FallbackValue)
    {
        if (HttpContext.Current != null && HttpContext.Current.Request != null)
        {
            string result = HttpContext.Current.Request.QueryString[ParameterName];

            if (string.IsNullOrEmpty(result)==false)
            {
                return XmlConvert.ToDateTime(result, XmlDateTimeSerializationMode.Local);
            }
        }

        return FallbackValue;
    }
}

Save the file. In the C1 Console, go to Functions | C# Functions, click 'Add ...' and write 'DateParser' click Next, specify a namespace and click Finish.
After that you have a function available you can use from XSLT that should work as expected.