def date_to_xmlschema(date):
    """Format a date for use in XML.

    date - The Time to format.

    Examples

        date_to_xmlschema(datetime.datetime.now())
        => "2011-04-24T20:34:46+05:30"

    Returns the formatted String.
    """
    return date.strftime('%Y-%m-%dT00:00:00+5:30')