<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Sapui5 date one day missing in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/sapui5-date-one-day-missing/qaa-p/12371662#M4631433</link>
    <description>&lt;P&gt;Boghyon's solution definitely works. It's pretty charming you can stick to Databinding and keep away any coding here.&lt;/P&gt;</description>
    <pubDate>Thu, 16 Dec 2021 08:17:37 GMT</pubDate>
    <dc:creator>petergilberg</dc:creator>
    <dc:date>2021-12-16T08:17:37Z</dc:date>
    <item>
      <title>Sapui5 date one day missing</title>
      <link>https://community.sap.com/t5/technology-q-a/sapui5-date-one-day-missing/qaq-p/12371646</link>
      <description>&lt;P&gt;I want to show the date I got with DatePicker in a section in a table. But the date is missing 1 day. &lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1895562-crud-google-chrome.jpg" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1895563-crud-google-chrome-paint.jpg" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;BR /&gt;I tried many methods:&lt;BR /&gt;&lt;A href="https://answers.sap.com/questions/409976/sap-webide---ui5---date-field-is-not-showing-corre.html" target="test_blank"&gt;https://answers.sap.com/questions/409976/sap-webide---ui5---date-field-is-not-showing-corre.html&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;&lt;A href="https://answers.sap.com/questions/323063/date-value-is-getting-reduced-by-one-day-while-pas.html" target="test_blank"&gt;https://answers.sap.com/questions/323063/date-value-is-getting-reduced-by-one-day-while-pas.html&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;But it didn't work. What is your suggestion?&lt;/P&gt;</description>
      <pubDate>Sat, 27 Feb 2021 01:22:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sapui5-date-one-day-missing/qaq-p/12371646</guid>
      <dc:creator>former_member727508</dc:creator>
      <dc:date>2021-02-27T01:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: Sapui5 date one day missing</title>
      <link>https://community.sap.com/t5/technology-q-a/sapui5-date-one-day-missing/qaa-p/12371647#M4631418</link>
      <description>&lt;P&gt;Since there is no code, I &lt;EM&gt;assume&lt;/EM&gt; the binding info of the DatePicker is not consistent with the binding info of the Text within the table. It's important to keep them consistent.&lt;/P&gt;&lt;P&gt;If the values are bound with a &lt;STRONG&gt;v2&lt;/STRONG&gt;.ODataModel, use:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;DatePicker/Text xmlns="sap.m"
  xmlns:core="sap.ui.core"
  core:require="{ ODataDateTimeType: 'sap/ui/model/odata/type/DateTime' }"
  value/text="{
    path: 'EntryDate',
    type: 'ODataDateTimeType',
    constraints: {
      displayFormat: 'Date'
    }
  }"
/&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Please follow the documented &lt;A href="https://ui5.sap.com/#/topic/6c9e61dc157a40c19460660ece8368bc"&gt;guidelines "&lt;STRONG&gt;Dates, Times, Timestamps, and Time Zones&lt;/STRONG&gt;"&lt;/A&gt; — must-read for OData V2 and OData V4.&lt;/P&gt;</description>
      <pubDate>Sat, 27 Feb 2021 09:50:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sapui5-date-one-day-missing/qaa-p/12371647#M4631418</guid>
      <dc:creator>boghyon</dc:creator>
      <dc:date>2021-02-27T09:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: Sapui5 date one day missing</title>
      <link>https://community.sap.com/t5/technology-q-a/sapui5-date-one-day-missing/qaa-p/12371648#M4631419</link>
      <description>&lt;P&gt;Thanks for your answer but it didn't work. Where am I doing wrong?&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;!--It's a input on my fragmnet--&amp;gt;
&amp;lt;f:SimpleForm editable="true" layout="ResponsiveGridLayout" labelSpanXL="3" labelSpanL="3" labelSpanS="12" adjustLabelSpan="false" emptySpanXL="4" emptySpanL="4" emptySpanM="4" emptySpanS="0" columnsXL="1" columnsL="1" columnsM="1" singleConteinerFullSize="false"&amp;gt;
	&amp;lt;f:content&amp;gt;
		&amp;lt;DatePicker id="dpKayitTarih"/&amp;gt;
	&amp;lt;/f:content&amp;gt;
&amp;lt;/f:SimpleForm&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;cells&amp;gt;
        &amp;lt;!--My code--&amp;gt;
	&amp;lt;!--&amp;lt;Text text="{ path: 'Tarih', type: 'sap.ui.model.type.Date', formatOptions: { pattern: 'MM/dd/yyyy' } }" /&amp;gt;--&amp;gt; 
	&amp;lt;!--Your code--&amp;gt;
	&amp;lt;Text xmlns="sap.m" xmlns:core="sap.ui.core" core:require="{ ODataDateTimeType: 'sap/ui/model/odata/type/DateTime' }" text="{ path: 'Tarih', type: 'ODataDateTimeType', constraints: { displayFormat: 'Date' } }"/&amp;gt;
&amp;lt;/cells&amp;gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 27 Feb 2021 10:09:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sapui5-date-one-day-missing/qaa-p/12371648#M4631419</guid>
      <dc:creator>former_member727508</dc:creator>
      <dc:date>2021-02-27T10:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: Sapui5 date one day missing</title>
      <link>https://community.sap.com/t5/technology-q-a/sapui5-date-one-day-missing/qaa-p/12371649#M4631420</link>
      <description>&lt;P&gt;&lt;SPAN class="mention-scrubbed"&gt;sehergurel&lt;/SPAN&gt; The value-property in DatePicker should be also bound with the v2.ODataModel as suggested in my answer.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Add the missing relative value-binding (i.e. without a leading slash in the beginning) to your DatePicker, same as with &amp;lt;Text text="{...}"/&amp;gt;.&lt;/LI&gt;&lt;LI&gt;When the user opens the dialog, create a binding Context with myODataModel&lt;A href="https://openui5.hana.ondemand.com/api/sap.ui.model.odata.v2.ODataModel#methods/createEntry"&gt;.createEntry&lt;/A&gt; as described in the topic &lt;A href="https://openui5.hana.ondemand.com/topic/6c47b2b39db9404582994070ec3d57a2#loio4c4cd99af9b14e08bb72470cc7cabff4"&gt;Creating Entities&lt;/A&gt; and set the created Context instance with myDialog.&lt;A href="https://openui5.hana.ondemand.com/api/sap.ui.base.ManagedObject#methods/setBindingContext"&gt;setBindingContext&lt;/A&gt;.&lt;/LI&gt;&lt;LI&gt;After the user enters the data and presses [Send], submit the newly created entry to the backend with myODataModel&lt;A href="https://openui5.hana.ondemand.com/api/sap.ui.model.odata.v2.ODataModel#methods/submitChanges"&gt;.submitChanges&lt;/A&gt;. The Table will be refreshed automatically with the new data (unless refreshAfterChange is disabled).&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;The above steps are part of the standard approach of dealing with OData binding.&lt;BR /&gt;If it requires too many changes in your code, forget all the above steps and try adding `UTC: true` to your Text.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;Text text="{
  path: 'Tarih',
  type: 'sap.ui.model.type.Date',
  formatOptions: {
    ...,
    UTC: true
  }
}" /&amp;gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 27 Feb 2021 11:35:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sapui5-date-one-day-missing/qaa-p/12371649#M4631420</guid>
      <dc:creator>boghyon</dc:creator>
      <dc:date>2021-02-27T11:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: Sapui5 date one day missing</title>
      <link>https://community.sap.com/t5/technology-q-a/sapui5-date-one-day-missing/qaa-p/12371650#M4631421</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Use the below sample code for reference.&lt;/P&gt;&lt;P&gt;In XML view:&lt;/P&gt;&lt;P&gt;&amp;lt;DatePicker id="SubmissionDate" value="{path: '/SubmissionDate', type:'sap.ui.model.type.Date', formatOptions:{ pattern : 'yyyy-MM-dd'}}"
width="auto" displayFormat="medium" enabled="true" visible="true" valueFormat="yyyyMMdd" required="false"/&amp;gt;&lt;/P&gt;&lt;P&gt;In controller:&lt;/P&gt;&lt;P&gt;var sStartDt = new Date(this.byId("SubmissionDate").getValue());&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;var sNStartDt = (sStartDt.getFullYear()).toString()+'-' +(sStartDt.getMonth()+ 1).toString()+'-'+(sStartDt.getDate()).toString()+"T00:00:00Z"&lt;/P&gt;&lt;P&gt;Hope it helped you!&lt;/P&gt;&lt;P&gt;Rajesh&lt;/P&gt;</description>
      <pubDate>Sun, 28 Feb 2021 07:01:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sapui5-date-one-day-missing/qaa-p/12371650#M4631421</guid>
      <dc:creator>former_member450774</dc:creator>
      <dc:date>2021-02-28T07:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: Sapui5 date one day missing</title>
      <link>https://community.sap.com/t5/technology-q-a/sapui5-date-one-day-missing/qaa-p/12371651#M4631422</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can also refer below code:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &amp;lt;DatePicker id="myDatePicker" placeholder="Enter Date" 
    value="{
        path:'/dateValue', type:'sap.ui.model.type.Date', formatOptions: {
            strictParsing: true, UTC: true
        }
    }"
    /&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Riya&lt;/P&gt;</description>
      <pubDate>Mon, 01 Mar 2021 07:12:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sapui5-date-one-day-missing/qaa-p/12371651#M4631422</guid>
      <dc:creator>former_member654880</dc:creator>
      <dc:date>2021-03-01T07:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: Sapui5 date one day missing</title>
      <link>https://community.sap.com/t5/technology-q-a/sapui5-date-one-day-missing/qaa-p/12371652#M4631423</link>
      <description>&lt;P&gt;Use binding as below it will work &lt;BR /&gt;text="{path: 'date', type: 'sap.ui.model.type.DateTime', formatOptions: { strictParsing: true , UTC: true}}&lt;/P&gt;&lt;P&gt;Issue is coming to you because of time zone .Some time server and client have different time zone&lt;/P&gt;</description>
      <pubDate>Mon, 01 Mar 2021 12:23:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sapui5-date-one-day-missing/qaa-p/12371652#M4631423</guid>
      <dc:creator>Jagtar</dc:creator>
      <dc:date>2021-03-01T12:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: Sapui5 date one day missing</title>
      <link>https://community.sap.com/t5/technology-q-a/sapui5-date-one-day-missing/qaa-p/12371653#M4631424</link>
      <description>&lt;P&gt;I've tried many methods like this but unfortunately it doesn't work.&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;Text text="{path: 'Tarih', type: 'sap.ui.model.type.DateTime', formatOptions: { strictParsing: true , UTC: true}}"/&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1895621-crud-google-chrome.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1895622-crud-google-chrome-2.jpg" /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Mar 2021 12:39:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sapui5-date-one-day-missing/qaa-p/12371653#M4631424</guid>
      <dc:creator>former_member727508</dc:creator>
      <dc:date>2021-03-01T12:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: Sapui5 date one day missing</title>
      <link>https://community.sap.com/t5/technology-q-a/sapui5-date-one-day-missing/qaa-p/12371654#M4631425</link>
      <description>&lt;P&gt;Unfortunately it doesn't work &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Mar 2021 12:40:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sapui5-date-one-day-missing/qaa-p/12371654#M4631425</guid>
      <dc:creator>former_member727508</dc:creator>
      <dc:date>2021-03-01T12:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: Sapui5 date one day missing</title>
      <link>https://community.sap.com/t5/technology-q-a/sapui5-date-one-day-missing/qaa-p/12371655#M4631426</link>
      <description>&lt;P&gt;Can you explain in more detail how to I use this?&lt;/P&gt;</description>
      <pubDate>Mon, 01 Mar 2021 12:41:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sapui5-date-one-day-missing/qaa-p/12371655#M4631426</guid>
      <dc:creator>former_member727508</dc:creator>
      <dc:date>2021-03-01T12:41:40Z</dc:date>
    </item>
    <item>
      <title>Re: Sapui5 date one day missing</title>
      <link>https://community.sap.com/t5/technology-q-a/sapui5-date-one-day-missing/qaa-p/12371656#M4631427</link>
      <description>&lt;P&gt;I've tried many methods like this but unfortunately it doesn't work.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Mar 2021 12:42:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sapui5-date-one-day-missing/qaa-p/12371656#M4631427</guid>
      <dc:creator>former_member727508</dc:creator>
      <dc:date>2021-03-01T12:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: Sapui5 date one day missing</title>
      <link>https://community.sap.com/t5/technology-q-a/sapui5-date-one-day-missing/qaa-p/12371657#M4631428</link>
      <description>&lt;P&gt;Can you please share your view binding code for date picker.&lt;BR /&gt;If you can't share then can you tell if its live binding with odata model or with local json model.&lt;/P&gt;&lt;P&gt;We have same problem in both type binding above given binding will work if its directly binded from odata model.&lt;/P&gt;&lt;P&gt;if you are first copying data to local model then bindind then you need to apply one formatter also .&lt;/P&gt;&lt;P&gt;let us know how you binded?&lt;/P&gt;</description>
      <pubDate>Mon, 01 Mar 2021 13:19:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sapui5-date-one-day-missing/qaa-p/12371657#M4631428</guid>
      <dc:creator>Jagtar</dc:creator>
      <dc:date>2021-03-01T13:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: Sapui5 date one day missing</title>
      <link>https://community.sap.com/t5/technology-q-a/sapui5-date-one-day-missing/qaa-p/12371658#M4631429</link>
      <description>&lt;P&gt;I used OData Model.&lt;BR /&gt;&lt;BR /&gt;For Tarih (date) field: &lt;/P&gt;&lt;P&gt;My fragment.view&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;...
&amp;lt;content&amp;gt;
&amp;lt;f:SimpleForm editable="true" layout="ResponsiveGridLayout" labelSpanXL="3" labelSpanL="3" labelSpanS="12" adjustLabelSpan="false" emptySpanXL="4" emptySpanL="4" emptySpanM="4" emptySpanS="0" columnsXL="1" columnsL="1" columnsM="1" singleConteinerFullSize="false"&amp;gt;
	&amp;lt;f:content&amp;gt;
		&amp;lt;DatePicker id="dpKayitTarih"/&amp;gt;
	&amp;lt;/f:content&amp;gt;
&amp;lt;/f:SimpleForm&amp;gt;
&amp;lt;/content&amp;gt;
&amp;lt;buttons&amp;gt;
	&amp;lt;Button text="{i18n&amp;gt;kaydet}" press="onKayitFrag" type="Transparent"/&amp;gt;
	&amp;lt;Button text="{i18n&amp;gt;geri}" press="onGeriFrag" type="Transparent"/&amp;gt;
&amp;lt;/buttons&amp;gt;
...
&lt;/CODE&gt;&lt;/PRE&gt;
My Worklist.view&lt;BR /&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;Table&amp;gt;
...
&amp;lt;items&amp;gt;
	&amp;lt;ColumnListItem&amp;gt;
		&amp;lt;cells&amp;gt;
			&amp;lt;Text text="{path: 'Tarih', type: 'sap.ui.model.type.DateTime', formatOptions: { strictParsing: true , UTC: true}}"/&amp;gt;
		&amp;lt;/cells&amp;gt;
	&amp;lt;/ColumnListItem&amp;gt;
&amp;lt;/items&amp;gt;
&amp;lt;/Table&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;My controller.js/onKayitFrag&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;onKayitFrag: function() {
	var that = this;
	var vTarih = sap.ui.getCore().byId("dpKayitTarih").getDateValue();
	var sData = {
		Tarih: vTarih
	};
	sap.ui.core.BusyIndicator.show();
	this.getView().getModel().create("/ListSet", sData, {
		success: function(oData) {
			sap.ui.core.BusyIndicator.hide();
			that._getKayitDialog().close();
			that.onRefresh();
			MessageToast.show("Başarılı");
		},
		error: function(oError) {
			sap.ui.core.BusyIndicator.hide();
			that._getKayitDialog().close();
			MessageToast.show("Başarısız");
		}
	});
}&amp;lt;br&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 01 Mar 2021 13:39:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sapui5-date-one-day-missing/qaa-p/12371658#M4631429</guid>
      <dc:creator>former_member727508</dc:creator>
      <dc:date>2021-03-01T13:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: Sapui5 date one day missing</title>
      <link>https://community.sap.com/t5/technology-q-a/sapui5-date-one-day-missing/qaa-p/12371659#M4631430</link>
      <description>&lt;P&gt;I am assuming your table is directly binded to odata model &lt;/P&gt;&lt;P&gt;&amp;lt;Table items="{/ListSet}"&amp;gt;&lt;/P&gt;&lt;P&gt;Can you confirm &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if data save at backend for 5th date ?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if not then issue when you passing data to backend at time  only you missing one day.&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;var vTarih = sap.ui.getCore().byId("dpKayitTarih").getDateValue();&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;To Solve this you need to do as below&lt;/P&gt;&lt;P&gt;resolveTimeDifference:function(dateTime){ &lt;/P&gt;&lt;P&gt;      if (dateTime !== undefined &amp;amp;&amp;amp; dateTime !== null &amp;amp;&amp;amp; dateTime !== "") { &lt;/P&gt;&lt;P&gt;          var offSet =       dateTime.getTimezoneOffset();&lt;/P&gt;&lt;P&gt;          var offSetVal = dateTime.getTimezoneOffset() / 60; &lt;/P&gt;&lt;P&gt;          var h = Math.floor(Math.abs(offSetVal));&lt;/P&gt;&lt;P&gt;           var m = Math.floor((Math.abs(offSetVal) * 60) % 60);&lt;/P&gt;&lt;P&gt;           dateTime = new Date(dateTime.setHours(h, m, 0, 0));
return dateTime; &lt;/P&gt;&lt;P&gt;       } &lt;/P&gt;&lt;P&gt;    return null; &lt;/P&gt;&lt;P&gt;}, &lt;/P&gt;&lt;P&gt;var vTarih = this.resolveTimeDifference(sap.ui.getCore().byId("dpKayitTarih").getDateValue());&lt;/P&gt;</description>
      <pubDate>Mon, 01 Mar 2021 15:24:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sapui5-date-one-day-missing/qaa-p/12371659#M4631430</guid>
      <dc:creator>Jagtar</dc:creator>
      <dc:date>2021-03-01T15:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: Sapui5 date one day missing</title>
      <link>https://community.sap.com/t5/technology-q-a/sapui5-date-one-day-missing/qaa-p/12371660#M4631431</link>
      <description>&lt;P&gt;You are great. Thank you so much. Problem solved.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Mar 2021 15:34:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sapui5-date-one-day-missing/qaa-p/12371660#M4631431</guid>
      <dc:creator>former_member727508</dc:creator>
      <dc:date>2021-03-01T15:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: Sapui5 date one day missing</title>
      <link>https://community.sap.com/t5/technology-q-a/sapui5-date-one-day-missing/qaa-p/12371661#M4631432</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Inside simpleform change the datepicker code to below.&lt;/P&gt;&lt;P&gt;&amp;lt;f:SimpleForm editable="true" layout="ResponsiveGridLayout" labelSpanXL="3" labelSpanL="3" labelSpanS="12" adjustLabelSpan="false" emptySpanXL="4" emptySpanL="4" emptySpanM="4" emptySpanS="0" columnsXL="1" columnsL="1" columnsM="1" singleConteinerFullSize="false"&amp;gt;&amp;lt;f:content&amp;gt;&amp;lt;DatePicker id="dpKayitTarih" value="{path: '/SubmissionDate', type:'sap.ui.model.type.Date', formatOptions:{ pattern : 'yyyy-MM-dd'}}" width="auto" displayFormat="medium" enabled="true" visible="true" valueFormat="yyyyMMdd" required="false"/&amp;gt;&amp;lt;/f:content&amp;gt;&amp;lt;/f:SimpleForm&amp;gt;&lt;/P&gt;&lt;P&gt;inside the controller , get the date value as below.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;var vTarih =  new Date(this.byId("dpKayitTarih").getValue());

or 
var vTarihDat =  new Date(this.byId("dpKayitTarih").getValue(
var vTarih = (vTarihDat.getFullYear()).toString()+'-' +(vTarihDat.getMonth()+ 1).toString()+'-'+(vTarihDat.getDate()).toString()+"T00:00:00Z"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 02 Mar 2021 08:37:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sapui5-date-one-day-missing/qaa-p/12371661#M4631432</guid>
      <dc:creator>former_member450774</dc:creator>
      <dc:date>2021-03-02T08:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: Sapui5 date one day missing</title>
      <link>https://community.sap.com/t5/technology-q-a/sapui5-date-one-day-missing/qaa-p/12371662#M4631433</link>
      <description>&lt;P&gt;Boghyon's solution definitely works. It's pretty charming you can stick to Databinding and keep away any coding here.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Dec 2021 08:17:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sapui5-date-one-day-missing/qaa-p/12371662#M4631433</guid>
      <dc:creator>petergilberg</dc:creator>
      <dc:date>2021-12-16T08:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: Sapui5 date one day missing</title>
      <link>https://community.sap.com/t5/technology-q-a/sapui5-date-one-day-missing/qaa-p/12371663#M4631434</link>
      <description>&lt;P&gt;Thank you so much!&lt;/P&gt;</description>
      <pubDate>Sun, 04 Dec 2022 12:56:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sapui5-date-one-day-missing/qaa-p/12371663#M4631434</guid>
      <dc:creator>bugrayuksel130</dc:creator>
      <dc:date>2022-12-04T12:56:18Z</dc:date>
    </item>
  </channel>
</rss>

