{"id":572,"date":"2022-05-25T18:44:27","date_gmt":"2022-05-25T17:44:27","guid":{"rendered":"https:\/\/ibex.tech\/csharp\/?p=572"},"modified":"2022-05-25T18:44:27","modified_gmt":"2022-05-25T17:44:27","slug":"utc","status":"publish","type":"post","link":"https:\/\/ibex.tech\/csharp\/c-sharp\/date-and-time\/utc","title":{"rendered":"UTC"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">Convert To Universal Time Format String<\/h4>\n\n\n\n<p>Converting a DateTime to this format allows you to avoid local date time format issues when passing DateTime values between systems. Then just use Convert::ToDateTime to convert it back.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\tstring sTemp = MyDateTimeValue.ToString(\"yyyy-MM-ddTHH:mm:ss.fffffff\");<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Convert To Universal Time Format String Converting a DateTime to this format allows you to avoid local date time format issues when passing DateTime values between systems. Then just use Convert::ToDateTime to convert it back.<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[43],"tags":[],"class_list":["post-572","post","type-post","status-publish","format-standard","hentry","category-date-and-time"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/572","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/comments?post=572"}],"version-history":[{"count":1,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/572\/revisions"}],"predecessor-version":[{"id":573,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/572\/revisions\/573"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/media?parent=572"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/categories?post=572"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/tags?post=572"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}