| RE: [BizTalker] Controlling XSD datetime output from Maps |
- From: Imran noor
- Subject: RE: [BizTalker] Controlling XSD datetime output from Maps
- Date: Thu, 02 Jun 2005 15:56:34 +1000
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Hi I am facing the same problem, but this solution doesn't work for me when client have different time zone as compare to server end. So the Convert.ToDateTime(strLongDateTime).ToString() method, change the datetime with effect of available zone based information. Is there any default solution for this, when converting datetime to string I can skip the zone specific information. Regards, Imran Noor CONFIDENTIALITY NOTICE: This e-mail/fax communication and any attachments may contain confidential and privileged information for the use of the designated recipients named above. If you are not the intended recipient, you are hereby notified that you have received this communication in error and that any review, disclosure, dissemination, distribution or copying of it or its contents is prohibited. If you have received this communication in error, please destroy all copies of this communication and any attachments. -----Original Message----- From: biztalkerlist@xxxxxxxxxxxxxxxxxxxxxx [mailto:biztalkerlist@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Sachin Kulkarni Sent: Thursday, June 02, 2005 5:33 AM To: BizTalker@xxxxxxxxxxxxxxxxxxxxxx; biztalk@xxxxxxxxxx Subject: RE: [BizTalker] Controlling XSD datetime output from Maps What I normally do is enforce the format using additional functoid. Not an ideal solution. but does the job. So even though input and output field types are the same (datetime) I use script functoid with inline C# like this public string GetShortDateTime(string strLongDateTime) { return Convert.ToDateTime(strLongDateTime).ToString("dd MMM yyyy HH:mm:ss"); } -----Original Message----- From: biztalkerlist@xxxxxxxxxxxxxxxxxxxxxx [mailto:biztalkerlist@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Nikolai Blackie Sent: Thursday, 2 June 2005 10:08 AM To: biztalk@xxxxxxxxxx; BizTalker@xxxxxxxxxxxxxxxxxxxxxx Subject: [BizTalker] Controlling XSD datetime output from Maps Does anyone know of a way to enforce how BizTalk outputs datetimes. I have a map and custom functoid that outputs a date in the form '2005-06-02T09:41:24' to a destination field of xsd:Datetime, but by the time the message makes it out of my map the date is in the format '2005-06-02T09:41:24.0000000+12:00' which is completely W3C valid. But an external system I am integrating with says that it is invalid and rejects it. I need to remove the milliseconds and GMT zone. I don't want to resort to altering the destination schema to use string data types either. Nikolai Blackie Development & Integration Services to unsubscribe to this list, please send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com - List managed by http://www.readify.net -- Confidential: This email is intended only for the person or entity to which it is addressed. The information contained in this email may be confidential and privileged. Any retransmission, review, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this email in error, please let us know by reply and destroy all copies of it. Thank you. to unsubscribe to this list, please send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com - List managed by http://www.readify.net to unsubscribe to this list, please send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com - List managed by http://www.readify.net
(Click here for more information on the biztalkers mailling list)
- References:
- RE: [BizTalker] Controlling XSD datetime output from Maps, Sachin Kulkarni
- Prev by Date: RE: [BizTalker] Controlling XSD datetime output from Maps
- Next by Date: [BizTalker] Biztalk like Workflow tool
- Previous by thread: RE: [BizTalker] Controlling XSD datetime output from Maps
- Next by thread: RE: [BizTalker] Controlling XSD datetime output from Maps
- Index(es):
