SAP Knowledge Base Article - Preview

3394974 - When creating a new JavaScript Date() object the month is always one ahead of the value entered - SAPUI5

Symptom

When constructing a new JavaScript Date object either directly or via sap/ui/core/date/UI5Date.getInstance, or when calling setMonth or setUTCMonth specifically, the resulting month is always one month ahead.


Read more...

Environment

  • SAPUI5
  • JavaScript

Product

SAPUI5 all versions

Keywords

sapui5 ui5 date month ahead one next future object constructor new javascript table ui5date getinstance , KBA , CA-UI5-COR , Core and Runtime , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.