<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[ma-date-range-picker]]></title><description><![CDATA[<p dir="auto">Hello</p>
<p dir="auto">I can set 00:00 to 23:59:59 in one day and one month to 30 days.But if this is 2018/06/17, there should be only 17 days. I have to solve in some parts to get what I want.<br />
<strong>I want</strong></p>
<ul>
<li>00:00:00, 2018/06/17 - 20:50:59 2018/06/17<br />
00:00:00, 2018/06/16 - 23:59:59 2018/06/16<br />
....<br />
00:00:00, 2018/06/2 - 23:59:59 2018/06/2<br />
00:00:00, 2018/06/1 - 23:59:59 2018/06/1</li>
</ul>
<p dir="auto"><strong>I do not want</strong></p>
<ul>
<li><s>Now at 20:50:59 2018/06/17, preset usage = "LAST_1_DAYS" is 20:50:59, 2018/06/16.</s></li>
</ul>
<p dir="auto"><img src="https://camo.nodebb.org/56b5f20adcd25374c8d1f7e08d12441c9b9c4ca8?url=https%3A%2F%2Fi.imgur.com%2Fxg6Hkt2.png" alt="0_1529245996107_2018-06-17_21-29-54.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">My code</p>
<pre><code>&lt;ma-date-range-picker style="display: none" update-interval="1 minutes" preset="LAST_1_MONTHS" to="dateBar1.to" from="dateBar1.from"&gt;&lt;/ma-date-range-picker&gt;
            &lt;div id="1414555" style="width: 400px; height: 35px; position: absolute; left: 23px; top: 65px;" layout="row"&gt;
                &lt;md-input-container flex=""&gt; 
                &lt;label&gt;From date&lt;/label&gt;
                    &lt;ma-date-picker format="DD-MM-YYYY" mode="date" ng-model="dateBar1.from" disabled=""&gt;&lt;/ma-date-picker&gt;
                    &lt;/md-input-container&gt;
                    &lt;md-input-container flex=""&gt;
                    &lt;label&gt;To date&lt;/label&gt;
                    &lt;ma-date-picker format="DD-MM-YYYY" mode="date" ng-model="dateBar1.to" disabled=""&gt;&lt;/ma-date-picker&gt;
                    &lt;/md-input-container&gt;
            &lt;/div&gt;
        
            &lt;div id="RowColor55" style="width: 127.875px; height: 53.8594px; position: absolute; left: -1px; top: 55.2031px;" layout="row"&gt;
                &lt;md-input-container flex="50" ng-init="point1monthColor='#00a300'"&gt;
                &lt;/md-input-container&gt;
            &lt;/div&gt;

            &lt;div id="RowChartType55" style="width: 299.922px; height: 53.8594px; position: absolute; left: -1px; top: 55.2031px;" layout="row"&gt;
                &lt;md-input-container flex="50" ng-init="point1monthChartType='column'"&gt;
                &lt;/md-input-container&gt;
            &lt;/div&gt;
            
            &lt;ma-point-values to="dateBar1.to" from="dateBar1.from" point-xid="PJST_SMA_Day_yield" values="point1monthValues" rollup="MAXIMUM" rollup-interval="1 days"&gt;&lt;/ma-point-values&gt;
            &lt;ma-serial-chart id="dddd55" style="height: 312.766px; width: 740.766px; position: absolute; left: 0px; top: 170px;" options="{legend:{},valueAxes:[{title: 'Energy(kWh)'}]}" export="true" balloon="true" legend="true" default-axis="left" series-1-type="{{point1monthChartType}}" series-1-color="{{point1monthColor}}" series-1-point="myP1" series-1-values="point1monthValues"  series-1-title="PV production"&gt;
            &lt;/ma-serial-chart&gt;
</code></pre>
]]></description><link>https://forum.mango-os.com/topic/3590/ma-date-range-picker</link><generator>RSS for Node</generator><lastBuildDate>Tue, 16 Jun 2026 12:07:39 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/3590.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 17 Jun 2018 14:33:48 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to ma-date-range-picker on Mon, 18 Jun 2018 16:36:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/desle" aria-label="Profile: DESLE">@<bdi>DESLE</bdi></a> I can't quite work out what exactly you are looking for. Hopefully what <a class="plugin-mentions-user plugin-mentions-a" href="/user/mattfox" aria-label="Profile: MattFox">@<bdi>MattFox</bdi></a> provided might help you.</p>
<p dir="auto">Like he said it seems that you just need to use <code>preset="MONTH_SO_FAR"</code> and a rollup of 1 day.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/desle" aria-label="Profile: desle">@<bdi>desle</bdi></a> said in <a href="/post/18932">ma-date-range-picker</a>:</p>
<blockquote>
<p dir="auto">Can I set up 00:00:00 - 23:59:59 one day?</p>
</blockquote>
<p dir="auto">Just remember that with date/time ranges the start is inclusive and the end is exclusive. e.g. if you query the API for 2018-06-17 00:00:00 to 2018-06-18 00:00:00 and there is a point value at exactly 2018-06-18 00:00:00 then it will not be returned.</p>
<p dir="auto">Another way to look at it is this, if there was a point value at 23:59:59.500 (500ms to midnight) then it would not be returned if you queried for 2018-06-17 00:00:00 to 2018-06-17 23:59:59, you should be querying up to 2018-06-18 00:00:00</p>
]]></description><link>https://forum.mango-os.com/post/18943</link><guid isPermaLink="true">https://forum.mango-os.com/post/18943</guid><dc:creator><![CDATA[Jared Wiltshire]]></dc:creator><pubDate>Mon, 18 Jun 2018 16:36:28 GMT</pubDate></item><item><title><![CDATA[Reply to ma-date-range-picker on Mon, 18 Jun 2018 00:18:46 GMT]]></title><description><![CDATA[<p dir="auto">You can indeed.<br />
Are you requiring the ability to both select this month to date or show the whole day, or can they be two separate charts?<br />
Noting that if the date-range-picker is changed, you would have to manually update the end time yourself.</p>
<p dir="auto">The amended code for above:</p>
<pre><code>&lt;ma-date-range-picker style="display: none" update-interval="1 minutes" preset="MONTH_SO_FAR" to="dateBar1.to" from="dateBar1.from"&gt;&lt;/ma-date-range-picker&gt;
            &lt;div id="1414555" style="width: 400px; height: 35px; position: absolute; left: 23px; top: 65px;" layout="row"&gt;
                &lt;md-input-container flex=""&gt; 
                &lt;label&gt;From date&lt;/label&gt;
                    &lt;ma-date-picker format="DD-MM-YYYY" mode="date" ng-model="dateBar1.from" disabled=""&gt;&lt;/ma-date-picker&gt;
                    &lt;/md-input-container&gt;
                    &lt;md-input-container flex=""&gt;
                    &lt;label&gt;To date&lt;/label&gt;
                    &lt;ma-date-picker format="DD-MM-YYYY" mode="date" ng-model="dateBar1.to" disabled=""&gt;&lt;/ma-date-picker&gt;
                    &lt;/md-input-container&gt;
            &lt;/div&gt;
        
            &lt;div id="RowColor55" style="width: 127.875px; height: 53.8594px; position: absolute; left: -1px; top: 55.2031px;" layout="row"&gt;
                &lt;md-input-container flex="50" ng-init="point1monthColor='#00a300'"&gt;
                &lt;/md-input-container&gt;
            &lt;/div&gt;

            &lt;div id="RowChartType55" style="width: 299.922px; height: 53.8594px; position: absolute; left: -1px; top: 55.2031px;" layout="row"&gt;
                &lt;md-input-container flex="50" ng-init="point1monthChartType='column'"&gt;
                &lt;/md-input-container&gt;
            &lt;/div&gt;
            
            &lt;ma-point-values to="dateBar1.to" from="dateBar1.from" point-xid="PJST_SMA_Day_yield" values="point1monthValues" rollup="MAXIMUM" rollup-interval="1 days"&gt;&lt;/ma-point-values&gt;
            &lt;ma-serial-chart id="dddd55" style="height: 312.766px; width: 740.766px; position: absolute; left: 0px; top: 170px;" options="{legend:{},valueAxes:[{title: 'Energy(kWh)'}]}" export="true" balloon="true" legend="true" default-axis="left" series-1-type="{{point1monthChartType}}" series-1-color="{{point1monthColor}}" series-1-point="myP1" series-1-values="point1monthValues"  series-1-title="PV production"&gt;
            &lt;/ma-serial-chart&gt;
</code></pre>
<p dir="auto">EDIT:<br />
For obtaining and enforcing the beginning and end of the day (saves you having to edit the date/time in the date picker field):</p>
<pre><code> &lt;p&gt;FROM: {{dateBar1.from | maMoment:'startOf':'day'}}&lt;/p&gt;
            &lt;p&gt;TO: {{dateBar1.to| maMoment:'endOf':'day'}}&lt;/p&gt;
</code></pre>
<p dir="auto">So your &lt;ma-point-values&gt; component will be like this:</p>
<pre><code>&lt;ma-point-values to="dateBar1.to | maMoment:'endOf':'day'" from="dateBar1.from | maMoment:'startOf':'day'" point-xid="PJST_SMA_Day_yield" values="point1monthValues" rollup="MAXIMUM" rollup-interval="1 days"&gt;&lt;/ma-point-values&gt;
</code></pre>
]]></description><link>https://forum.mango-os.com/post/18933</link><guid isPermaLink="true">https://forum.mango-os.com/post/18933</guid><dc:creator><![CDATA[MattFox]]></dc:creator><pubDate>Mon, 18 Jun 2018 00:18:46 GMT</pubDate></item><item><title><![CDATA[Reply to ma-date-range-picker on Sun, 17 Jun 2018 23:26:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mattfox" aria-label="Profile: mattfox">@<bdi>mattfox</bdi></a> I do not understand how to use it. Can i have a sample.I understand that if I use the last 1 months is now-24hr. Can I set up 00:00:00 - 23:59:59 one day?</p>
]]></description><link>https://forum.mango-os.com/post/18932</link><guid isPermaLink="true">https://forum.mango-os.com/post/18932</guid><dc:creator><![CDATA[DESLE]]></dc:creator><pubDate>Sun, 17 Jun 2018 23:26:58 GMT</pubDate></item><item><title><![CDATA[Reply to ma-date-range-picker on Sun, 17 Jun 2018 20:33:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/desle" aria-label="Profile: desle">@<bdi>desle</bdi></a> said in <a href="/post/18929">ma-date-range-picker</a>:</p>
<blockquote>
<p dir="auto"><code>&lt;ma-date-range-picker style="display: none" update-interval="1 minutes" preset="LAST_1_MONTHS" to="dateBar1.to" from="dateBar1.from"&gt;&lt;/ma-date-range-picker&gt;</code></p>
</blockquote>
<p dir="auto">Hi, for a start change change <code>preset="LAST_1_MONTHS"</code>  to <code>preset="MONTH_SO_FAR"</code><br />
That will give you from the beginning of the month.</p>
<p dir="auto">Let me know how that goes</p>
<p dir="auto">Fox</p>
]]></description><link>https://forum.mango-os.com/post/18930</link><guid isPermaLink="true">https://forum.mango-os.com/post/18930</guid><dc:creator><![CDATA[MattFox]]></dc:creator><pubDate>Sun, 17 Jun 2018 20:33:50 GMT</pubDate></item></channel></rss>