"return System.DateTime.Now.Day;" gives different results in ZP and PM

  • Автор темы Автор темы Cyrix
  • Дата начала Дата начала

Cyrix

Client
Регистрация
16.12.2011
Сообщения
401
Реакции
12
Баллы
18
I am trying to use C# code "return System.DateTime.Now.Day;" to get the current day number of the month.
In PM it assigned a current value to a variable (such as 7), but in ZP, it gives something like 169260.

How do we get the correct day number in ZP?

Thanks.
 
Cannot confirm

upload_2015-12-8_10-59-18.png


upload_2015-12-8_10-59-54.png
 
I copied the project to another file name, and that new file worked in ZP showing correct value.
However, the old file still shows the wrong value for the C# output variable.

The 169260 value was probably from my C# code assigning to the same variable long time ago, but I have modified the code recently. However, in ZP, it does not reflect the result of the new code, unless I copy the project to another file.
A bug?
 

Кто просматривает тему: (Всего: 0, Пользователи: 0, Гости: 0)