<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ISODate Archives | ZappySys Blog</title>
	<atom:link href="https://zappysys.com/blog/tag/isodate/feed/" rel="self" type="application/rss+xml" />
	<link>https://zappysys.com/blog/tag/isodate/</link>
	<description>SSIS / ODBC Drivers / API Connectors for JSON, XML, Azure, Amazon AWS, Salesforce, MongoDB and more</description>
	<lastBuildDate>Wed, 22 Oct 2025 22:58:58 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.4.4</generator>

<image>
	<url>https://zappysys.com/blog/wp-content/uploads/2023/01/cropped-zappysys-symbol-large-32x32.png</url>
	<title>ISODate Archives | ZappySys Blog</title>
	<link>https://zappysys.com/blog/tag/isodate/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to parse MongoDB Date time in SSIS</title>
		<link>https://zappysys.com/blog/parse-mongodb-date-time-in-ssis-custom-format/</link>
		
		<dc:creator><![CDATA[ZappySys]]></dc:creator>
		<pubDate>Wed, 18 Jan 2017 14:57:50 +0000</pubDate>
				<category><![CDATA[SSIS MongoDB Source]]></category>
		<category><![CDATA[ISODate]]></category>
		<category><![CDATA[json]]></category>
		<category><![CDATA[MongoDB]]></category>
		<category><![CDATA[ssis]]></category>
		<category><![CDATA[SSIS PowerPack]]></category>
		<guid isPermaLink="false">http://zappysys.com/blog/?p=946</guid>

					<description><![CDATA[<p>Introduction In our previous post we explained how to read/load MongoDB data in SSIS. This post covers specifically how to parse MongoDB date time stored inside your MongoDB documents. By default any well known date formats (e.g. ISO date) will be parsed as valid datetime (e.g. DT_DBTIMESTAMP) when you use SSIS MongoDB Source. But if you [&#8230;]</p>
<p>The post <a href="https://zappysys.com/blog/parse-mongodb-date-time-in-ssis-custom-format/">How to parse MongoDB Date time in SSIS</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h2>Introduction</h2>
<p><img decoding="async" class="size-full wp-image-2115 alignleft" src="https://zappysys.com/blog/wp-content/uploads/2017/08/mongodb-logo.png" alt="" width="88" height="88" />In our previous post we explained <a href="https://zappysys.com/blog/ssis-loading-data-into-mongodb-upsert-update-delete-insert/" target="_blank" rel="noopener">how to read/load MongoDB data in SSIS</a>. This post covers specifically <strong>how to parse MongoDB date time</strong> stored inside your MongoDB documents. By default any well known date formats (e.g. ISO date) will be parsed as valid datetime (e.g. DT_DBTIMESTAMP) when you use <a href="//zappysys.com/products/ssis-powerpack/ssis-mongodb-source/" target="_blank" rel="noopener">SSIS MongoDB Source</a>. But if you have date stored as other format (e.g. MM-dd-yyyy) then system will not parse as string unless you specify custom date format on JSON Datetime tab. If you want to learn How to query Date in MongoDB then <a href="https://zappysys.com/blog/how-to-query-mongodb-by-date-or-isodate/" target="_blank" rel="noopener">read this article</a></p>
<h2>Parse MongoDB Date time using SSIS MongoDB Source</h2>
<p>Perform the following steps to enable custom date format parsing for date not stored as ISODate in MongoDB. Below steps assume you have Downloaded and Installed <a href="//zappysys.com/products/ssis-powerpack/" target="_blank" rel="noopener">SSIS PowerPack from Here</a></p>
<p>NOTE: Below steps not necessary if your date is stored as <strong>ISODate</strong> in MongoDB&#8230;. e.g.  { &#8220;OrderDate&#8221; : ISODate(&#8220;2015-12-31T00:00:00Z&#8221;)  }</p>
<ol>
<li>Open MongoDB Source. Change Mode to Query Mode</li>
<li>Check Enable JSON option. You don&#8217;t have to type filter (its optional)</li>
<li>Goto JSON Options and then Datetime options Tab</li>
<li>Enter custom date format (The way your date stored in MongoDB)</li>
</ol>
<p>Now go to columns and click refresh columns. It will detect column as DT_DBTIMESTAMP (e.g. date/time)</p>
<p>&nbsp;</p>
<div id="attachment_950" style="width: 971px" class="wp-caption alignnone"><a href="//zappysys.com/blog/wp-content/uploads/2017/01/ssis-parse-mongodb-date-time-custom-format.png"><img fetchpriority="high" decoding="async" aria-describedby="caption-attachment-950" class="size-full wp-image-950" src="//zappysys.com/blog/wp-content/uploads/2017/01/ssis-parse-mongodb-date-time-custom-format.png" alt="SSIS MongoDB Source- Date Time Options ( Parse MongoDB Date)" width="961" height="496" srcset="https://zappysys.com/blog/wp-content/uploads/2017/01/ssis-parse-mongodb-date-time-custom-format.png 961w, https://zappysys.com/blog/wp-content/uploads/2017/01/ssis-parse-mongodb-date-time-custom-format-300x155.png 300w" sizes="(max-width: 961px) 100vw, 961px" /></a><p id="caption-attachment-950" class="wp-caption-text">SSIS MongoDB Source- Date Time Options ( Parse MongoDB Date)</p></div>
<div id="attachment_949" style="width: 546px" class="wp-caption alignnone"><a href="//zappysys.com/blog/wp-content/uploads/2017/01/ssis-mongodb-query-date-time-fields.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-949" class="size-full wp-image-949" src="//zappysys.com/blog/wp-content/uploads/2017/01/ssis-mongodb-query-date-time-fields.png" alt="SSIS MongoDB Source - Query and Parse MongoDB Date with Custom format" width="536" height="291" srcset="https://zappysys.com/blog/wp-content/uploads/2017/01/ssis-mongodb-query-date-time-fields.png 536w, https://zappysys.com/blog/wp-content/uploads/2017/01/ssis-mongodb-query-date-time-fields-300x163.png 300w" sizes="(max-width: 536px) 100vw, 536px" /></a><p id="caption-attachment-949" class="wp-caption-text">SSIS MongoDB Source &#8211; Query and Parse MongoDB Date with Custom format</p></div>
<p>The post <a href="https://zappysys.com/blog/parse-mongodb-date-time-in-ssis-custom-format/">How to parse MongoDB Date time in SSIS</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to create MongoDB documents (JSON, BSON) for loading in SSIS</title>
		<link>https://zappysys.com/blog/create-mongodb-documents-ssis-json-bson-load-update-insert-upsert-collection/</link>
		
		<dc:creator><![CDATA[ZappySys]]></dc:creator>
		<pubDate>Tue, 30 Aug 2016 15:07:22 +0000</pubDate>
				<category><![CDATA[SSIS JSON Generator Transform]]></category>
		<category><![CDATA[BSON]]></category>
		<category><![CDATA[ISODate]]></category>
		<category><![CDATA[json]]></category>
		<category><![CDATA[MongoDB]]></category>
		<category><![CDATA[ssis]]></category>
		<category><![CDATA[SSIS MongoDB Destination]]></category>
		<guid isPermaLink="false">http://zappysys.com/blog/?p=742</guid>

					<description><![CDATA[<p>Introduction In our previous article, we discussed how to load data into MongoDB (Insert, Update, or Upsert Mode) with various options. In this post, we will focus on creating a MongoDB Document for the load process. We will see how to produce BSON (MongoDB-specific JSON that may include functions such as ObjectID and ISODate). This article assumes you have [&#8230;]</p>
<p>The post <a href="https://zappysys.com/blog/create-mongodb-documents-ssis-json-bson-load-update-insert-upsert-collection/">How to create MongoDB documents (JSON, BSON) for loading in SSIS</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h2>Introduction</h2>
<p><a href="https://zappysys.com/blog/wp-content/uploads/2017/08/mongodb-logo.png"><img loading="lazy" decoding="async" class="size-full wp-image-2115 alignleft" src="https://zappysys.com/blog/wp-content/uploads/2017/08/mongodb-logo.png" alt="" width="88" height="88" /></a><span style="box-sizing: border-box; margin: 0px; padding: 0px;">In our previous article, we discussed how to <a target="_blank" rel="noopener">load data into MongoDB (Insert, Update, or Upsert Mode)</a> with various options. </span>In this post, we will focus on creating a MongoDB Document for the load process. We will see how to produce BSON (MongoDB-specific JSON<span style="box-sizing: border-box; margin: 0px; padding: 0px;"> that may include functions such as <em>ObjectID and</em></span> <em>ISODate</em>).</p>
<p>This article assumes you have installed <a href="//zappysys.com/products/ssis-powerpack/" target="_blank" rel="noopener">SSIS PowerPack</a> and watched the introduction videos of <a href="//zappysys.com/products/ssis-powerpack/ssis-json-generator-transform/" target="_blank" rel="noopener">SSIS JSON Generator Transform</a> and <a href="//zappysys.com/products/ssis-powerpack/ssis-mongodb-destination/" target="_blank" rel="noopener">MongoDB Destination Connector</a></p>
<h2>Create MongoDB document Example (Produce JSON, BSON for Load)</h2>
<p>Here is the screenshot, which shows how to fetch SQL Server data &gt; create a MongoDB document in JSON / BSON format, and load it into a MongoDB collection</p>
<p>The high-level steps we performed are</p>
<ol>
<li>Used OLEDB Source to fetch data from SQL Server. Used a query like below<br />
<pre class="crayon-plain-tag">select CustomerID, 'ISODate("' + convert(varchar(30),getdate(),126) + '")' as DOB from Customers</pre>
In the above query, you will notice that we are building some BSON fragments, which will be treated as raw values in the JSON generator. Also, we are using the convert function from SQL Server to produce an ISO date format (Style=126 will produce an ISO date)</li>
<li>Used the <a href="//zappysys.com/products/ssis-powerpack/ssis-json-generator-transform/" target="_blank" rel="noopener">SSIS JSON Generator Transform</a> to produce a JSON document for each customer. Define a custom layout using the drag-and-drop interface. You can control how many documents you want to output using settings on Transform (Single document for all input rows or one document per row in the Main dataset)</li>
<li>Load JSON documents coming from upstream into MongoDB using the <a href="//zappysys.com/products/ssis-powerpack/ssis-mongodb-destination/" target="_blank" rel="noopener">SSIS MongoDB Destination Connector</a>. We changed Action=Upsert and set ColumnsForLookup to CustomerID (Consider this as Primary Key or your Join Column to find existing document)</li>
<li>On Target, we mapped __DOCUMENT__ rather than individual columns, so that we can load the full document.
<div id="attachment_11582" style="width: 775px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2016/08/Sample-SSIS-Package-Create-MongoDB-Document-in-BSON-format-JSON-with-functions.-Update-or-Insert-Mode.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-11582" class="size-full wp-image-11582" src="https://zappysys.com/blog/wp-content/uploads/2016/08/Sample-SSIS-Package-Create-MongoDB-Document-in-BSON-format-JSON-with-functions.-Update-or-Insert-Mode.png" alt="" width="765" height="625" srcset="https://zappysys.com/blog/wp-content/uploads/2016/08/Sample-SSIS-Package-Create-MongoDB-Document-in-BSON-format-JSON-with-functions.-Update-or-Insert-Mode.png 765w, https://zappysys.com/blog/wp-content/uploads/2016/08/Sample-SSIS-Package-Create-MongoDB-Document-in-BSON-format-JSON-with-functions.-Update-or-Insert-Mode-300x245.png 300w" sizes="(max-width: 765px) 100vw, 765px" /></a><p id="caption-attachment-11582" class="wp-caption-text">Sample SSIS Package &#8211; Create MongoDB Document in BSON format (JSON with functions). Update or Insert Mode</p></div></li>
</ol>
<h2>Configure JSON Generator Transform &#8211; Create JSON Document</h2>
<p>If you want to learn how to configure the <a target="_blank" rel="noopener">SSIS JSON Generator Transform,</a> then watch the video <a target="_blank" rel="noopener">here.</a> Important thing to remember in the configuration is to check the <strong>Treat value of this column as Raw JSON</strong></p>
<div id="attachment_11581" style="width: 938px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2016/08/Create-MongoDB-Document-in-JSON-or-BSON-format-Load-into-Collection-Upsert-Update-or-Insert.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-11581" class="size-full wp-image-11581" src="https://zappysys.com/blog/wp-content/uploads/2016/08/Create-MongoDB-Document-in-JSON-or-BSON-format-Load-into-Collection-Upsert-Update-or-Insert.png" alt="" width="928" height="652" srcset="https://zappysys.com/blog/wp-content/uploads/2016/08/Create-MongoDB-Document-in-JSON-or-BSON-format-Load-into-Collection-Upsert-Update-or-Insert.png 928w, https://zappysys.com/blog/wp-content/uploads/2016/08/Create-MongoDB-Document-in-JSON-or-BSON-format-Load-into-Collection-Upsert-Update-or-Insert-300x211.png 300w, https://zappysys.com/blog/wp-content/uploads/2016/08/Create-MongoDB-Document-in-JSON-or-BSON-format-Load-into-Collection-Upsert-Update-or-Insert-768x540.png 768w" sizes="(max-width: 928px) 100vw, 928px" /></a><p id="caption-attachment-11581" class="wp-caption-text">Create MongoDB Document in JSON or BSON format &#8211; Load into Collection (Upsert &#8211; Update or Insert)</p></div>
<h2>Configure MongoDB Destination &#8211; For Upsert (Update or Insert Mode)</h2>
<p><span style="box-sizing: border-box; margin: 0px; padding: 0px;">By default, the <a target="_blank" rel="noopener">SSIS MongoDB Destination Connector</a> performs an insert, but if you want to perform an Upsert (i.e., insert if not found, else update), you have to change a few settings.</span></p>
<ol>
<li>Change Operation to UpdateOrInsert</li>
<li>Set ColumnsForLookup (e.g., in our case, it was just one CustomerID). If you have multiple columns for join, then use a comma-separated list (e.g., City, State, Zip)</li>
<li>If you want to affect various documents if more than one match is found for the join criteria, then use multi=true as shown in the screenshot below (see LoadOptions )
<div id="attachment_11580" style="width: 1003px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2016/08/Configure-SSIS-MongoDB-destination-for-Upsert-operation.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-11580" class="size-full wp-image-11580" src="https://zappysys.com/blog/wp-content/uploads/2016/08/Configure-SSIS-MongoDB-destination-for-Upsert-operation.png" alt="" width="993" height="528" srcset="https://zappysys.com/blog/wp-content/uploads/2016/08/Configure-SSIS-MongoDB-destination-for-Upsert-operation.png 993w, https://zappysys.com/blog/wp-content/uploads/2016/08/Configure-SSIS-MongoDB-destination-for-Upsert-operation-300x160.png 300w, https://zappysys.com/blog/wp-content/uploads/2016/08/Configure-SSIS-MongoDB-destination-for-Upsert-operation-768x408.png 768w" sizes="(max-width: 993px) 100vw, 993px" /></a><p id="caption-attachment-11580" class="wp-caption-text">Configure the SSIS MongoDB destination for the Upsert operation</p></div></li>
</ol>
<div class="mceTemp"></div>
<h2>Conclusion</h2>
<p>In this post, you have seen how easy it is to create MongoDB Documents in JSON / BSON format and load them into a MongoDB collection using <a target="_blank" rel="noopener">ZappySys SSIS PowerPack</a>. This innovative drag-and-drop approach can simplify the entire ETL process if you are in a time crunch and don&#8217;t know scripting languages.</p>
<p>The post <a href="https://zappysys.com/blog/create-mongodb-documents-ssis-json-bson-load-update-insert-upsert-collection/">How to create MongoDB documents (JSON, BSON) for loading in SSIS</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
