Geeks With Blogs
Andrew Siemer's Blog Enterprise Web Applications, ASP.NET MVC, C#, SQL Server, Architecture, & Writing

We came across an odd little issue where our message schema requires a DateTime value.  Using System.DateTime.Now does not come out in the proper format as BizTalk requires the UTC format.  UTC format follows something like this: YYYY-MM-DDThhmmss (e.g. 1997-07-12T103508)

If you are working with your dates pragmatically as we currently are you can simply use System.DateTime.Now.ToString("o")

We are currently working in a message assignment shape to send a response value in the form of a DateTime just to let the consumer of our web service know that BizTalk received the request.

In the message assignment...

image

Notice the System.DateTime.Now.ToString("o")...

image

(this assignment should go in one continuous line)

Posted on Wednesday, June 11, 2008 11:02 AM | Back to top


Comments on this post: UTC DateTime format and BizTalk

No comments posted yet.
Your comment:
 (will show your gravatar)


Copyright © Andrew Siemer - www.andrewsiemer.com | Powered by: GeeksWithBlogs.net