{"id":38,"date":"2007-05-01T16:35:28","date_gmt":"2007-05-01T16:35:28","guid":{"rendered":"http:\/\/www.myfatblog.co.uk\/?p=38"},"modified":"2007-05-01T16:35:28","modified_gmt":"2007-05-01T16:35:28","slug":"the-excel-properties-predicament-a-resolution","status":"publish","type":"post","link":"http:\/\/www.myfatblog.co.uk\/index.php\/2007\/05\/the-excel-properties-predicament-a-resolution\/","title":{"rendered":"The Excel properties predicament &#8211; A resolution.."},"content":{"rendered":"<p>Well thanks to a fellow SUGUK member, I found the solution to passing Date values from Excel into a SharePoint document library.<\/p>\n<p>&#8216;The devil is in the detail&#8217; as the saying goes and it&#8217;s no truer in this instance.. The trick is making sure that the date format of the text you&#8217;re passing out of Esxcel matches what SharePoint expects to see in a date format library column. Basically it must meet a particular format of ISO8601, which basically equates to <strong>yyyy-mm-ddThh:mm:ssZ<\/strong><\/p>\n<p>ISO8601 specifies that dates should be formatted year, month then day, and times should be formatted hours, minutes then seconds. If they are stored in a single string, then they should be seperated by a Capital T. If a timezone is not specified, then the ISO8601 assumes local time. In order to specify GMT, we add Z for &#8216;Zulu time&#8217; or &#8216;Zero Meridien&#8217;.<\/p>\n<p>So, how do we access this type of date? Well within VB or C# code, we can make a call to the Mirosoft.SharePoint.Utilities namespace and use the SPUtility.CreateISO8601DateTimeFromSystemDateTime method. Unfortunately, this isn&#8217;t as easy to achieve from VBA code within Excell 2003. But, we don&#8217;t have to..<\/p>\n<p>All you need is a simple text format command, SharePoint will happily accept a properly formatted string and then treat it as a date..<\/p>\n<p>=TEXT(cell_reference,&#8221;yyyy-mm-ddThh:mm:ssZ&#8221;)<\/p>\n<p>Where cell_reference is a named cell containing a standard date\/time.<\/p>\n<p>Now, create a named cell reference for the new cell, Head to the properties page for the spreadsheet and create a linked property that points to the new cell. Make sure you have a library column that matches the named property, then upload the spreadsheet to your document library et voila, your date will appear..<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Well thanks to a fellow SUGUK member, I found the solution to passing Date values from Excel into a SharePoint document library. &#8216;The devil is in the detail&#8217; as the saying goes and it&#8217;s no truer in this instance.. The trick is making sure that the date format of the text you&#8217;re passing out of &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"http:\/\/www.myfatblog.co.uk\/index.php\/2007\/05\/the-excel-properties-predicament-a-resolution\/\">Continue reading<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[9,8],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>The Excel properties predicament - A resolution.. - Blog of an overweight SharePoint addict<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/www.myfatblog.co.uk\/index.php\/2007\/05\/the-excel-properties-predicament-a-resolution\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"The Excel properties predicament - A resolution.. - Blog of an overweight SharePoint addict\" \/>\n<meta property=\"og:description\" content=\"Well thanks to a fellow SUGUK member, I found the solution to passing Date values from Excel into a SharePoint document library. &#8216;The devil is in the detail&#8217; as the saying goes and it&#8217;s no truer in this instance.. The trick is making sure that the date format of the text you&#8217;re passing out of &hellip; Continue reading\" \/>\n<meta property=\"og:url\" content=\"http:\/\/www.myfatblog.co.uk\/index.php\/2007\/05\/the-excel-properties-predicament-a-resolution\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog of an overweight SharePoint addict\" \/>\n<meta property=\"article:published_time\" content=\"2007-05-01T16:35:28+00:00\" \/>\n<meta name=\"author\" content=\"Cimares\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@cimares\" \/>\n<meta name=\"twitter:site\" content=\"@cimares\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Cimares\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"http:\/\/www.myfatblog.co.uk\/index.php\/2007\/05\/the-excel-properties-predicament-a-resolution\/\",\"url\":\"http:\/\/www.myfatblog.co.uk\/index.php\/2007\/05\/the-excel-properties-predicament-a-resolution\/\",\"name\":\"The Excel properties predicament - A resolution.. - Blog of an overweight SharePoint addict\",\"isPartOf\":{\"@id\":\"http:\/\/www.myfatblog.co.uk\/#website\"},\"datePublished\":\"2007-05-01T16:35:28+00:00\",\"dateModified\":\"2007-05-01T16:35:28+00:00\",\"author\":{\"@id\":\"http:\/\/www.myfatblog.co.uk\/#\/schema\/person\/55ae8f6885bb5b8390dad001f3da83c6\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/www.myfatblog.co.uk\/index.php\/2007\/05\/the-excel-properties-predicament-a-resolution\/\"]}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/www.myfatblog.co.uk\/#website\",\"url\":\"http:\/\/www.myfatblog.co.uk\/\",\"name\":\"Blog of an overweight SharePoint addict\",\"description\":\"The rantings of a (not so) food obsessed IT consultant!\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/www.myfatblog.co.uk\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"http:\/\/www.myfatblog.co.uk\/#\/schema\/person\/55ae8f6885bb5b8390dad001f3da83c6\",\"name\":\"Cimares\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/www.myfatblog.co.uk\/#\/schema\/person\/image\/\",\"url\":\"http:\/\/www.myfatblog.co.uk\/images\/BlogImages\/About_D057\/TopOfTheWorld.jpg\",\"contentUrl\":\"http:\/\/www.myfatblog.co.uk\/images\/BlogImages\/About_D057\/TopOfTheWorld.jpg\",\"caption\":\"Cimares\"},\"sameAs\":[\"http:\/\/www.myfatblog.co.uk\"],\"url\":\"http:\/\/www.myfatblog.co.uk\/index.php\/author\/reginald\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"The Excel properties predicament - A resolution.. - Blog of an overweight SharePoint addict","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/www.myfatblog.co.uk\/index.php\/2007\/05\/the-excel-properties-predicament-a-resolution\/","og_locale":"en_US","og_type":"article","og_title":"The Excel properties predicament - A resolution.. - Blog of an overweight SharePoint addict","og_description":"Well thanks to a fellow SUGUK member, I found the solution to passing Date values from Excel into a SharePoint document library. &#8216;The devil is in the detail&#8217; as the saying goes and it&#8217;s no truer in this instance.. The trick is making sure that the date format of the text you&#8217;re passing out of &hellip; Continue reading","og_url":"http:\/\/www.myfatblog.co.uk\/index.php\/2007\/05\/the-excel-properties-predicament-a-resolution\/","og_site_name":"Blog of an overweight SharePoint addict","article_published_time":"2007-05-01T16:35:28+00:00","author":"Cimares","twitter_card":"summary_large_image","twitter_creator":"@cimares","twitter_site":"@cimares","twitter_misc":{"Written by":"Cimares","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"http:\/\/www.myfatblog.co.uk\/index.php\/2007\/05\/the-excel-properties-predicament-a-resolution\/","url":"http:\/\/www.myfatblog.co.uk\/index.php\/2007\/05\/the-excel-properties-predicament-a-resolution\/","name":"The Excel properties predicament - A resolution.. - Blog of an overweight SharePoint addict","isPartOf":{"@id":"http:\/\/www.myfatblog.co.uk\/#website"},"datePublished":"2007-05-01T16:35:28+00:00","dateModified":"2007-05-01T16:35:28+00:00","author":{"@id":"http:\/\/www.myfatblog.co.uk\/#\/schema\/person\/55ae8f6885bb5b8390dad001f3da83c6"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/www.myfatblog.co.uk\/index.php\/2007\/05\/the-excel-properties-predicament-a-resolution\/"]}]},{"@type":"WebSite","@id":"http:\/\/www.myfatblog.co.uk\/#website","url":"http:\/\/www.myfatblog.co.uk\/","name":"Blog of an overweight SharePoint addict","description":"The rantings of a (not so) food obsessed IT consultant!","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/www.myfatblog.co.uk\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"http:\/\/www.myfatblog.co.uk\/#\/schema\/person\/55ae8f6885bb5b8390dad001f3da83c6","name":"Cimares","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/www.myfatblog.co.uk\/#\/schema\/person\/image\/","url":"http:\/\/www.myfatblog.co.uk\/images\/BlogImages\/About_D057\/TopOfTheWorld.jpg","contentUrl":"http:\/\/www.myfatblog.co.uk\/images\/BlogImages\/About_D057\/TopOfTheWorld.jpg","caption":"Cimares"},"sameAs":["http:\/\/www.myfatblog.co.uk"],"url":"http:\/\/www.myfatblog.co.uk\/index.php\/author\/reginald\/"}]}},"_links":{"self":[{"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/38"}],"collection":[{"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/comments?post=38"}],"version-history":[{"count":0,"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/38\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=38"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/categories?post=38"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/tags?post=38"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}