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

Cyrix

Client
Регистрация
16.12.2011
Сообщения
390
Благодарностей
11
Баллы
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.
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 707
Баллы
113
Cannot confirm

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


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

Cyrix

Client
Регистрация
16.12.2011
Сообщения
390
Благодарностей
11
Баллы
18
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?
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 707
Баллы
113

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