Skip to Content
Oct 07, 2019 at 03:45 PM

SAPUI5 - new Date().getMonth - delievers an Month which is one unit smaller that what it is.

1529 Views Last edit Oct 07, 2019 at 03:46 PM 3 rev

Hello as the title states,

if you were to do the following,

var a = new Date(); // 07.Oktober/2019


//Gives out the Month as 09 which is obviously false, now the SAP does count from 0 to 11, so it does make sense, however

I wonder if there is a Bibliothek which automaticly helps, format things as they are, rather than go through certain reformating?