There seems to be a glitch with 31 day months. I have a datetimeinput. on a popup. If Jan 31st is chosen, it displays Jan 31, 2020 11:00 PM. (I really just want it to display a month and year but I can’t since this is on a popup and the whole date picker stuck behind the popup bug hasn’t been fixed. But I digress) I then have code to grab the date from the input but it is wrong.
date = self.getSibling("DateTimeInput").props.value m = system.date.getMonth(date) + 1 y = system.date.getYear(date) myds.Log(system.date.format(date, 'yyyy-MM-dd') + ' ' + str(m)) myds.Log(self.getSibling("DateTimeInput").props.formattedValues.datetime)
myds is just the name of the global script library where I take care of logging for debugging purposes
Jan 31, 2020 11:00 PM
How is the date derived from the value reading Feb but the formatted and display values reading January?