I have a problem with defining an initial value for a web property date.

Code:
{ WebProperty = Server}
Property Date pdVanaf 01/01/1990
This property is defined on a cWebview.

After a webget of this property to a datetime value, the datetime has a value of 1990-01-01 (shown in debugger) and when you do (DateGetYear (DateValue) you get 1 in stead of 1990.

Working on Windows 10. Settings on my PC are european/dutch date formats.
DataFlex 20.1 release version.


It took al long time to find out what was happening, this was converted from 19.1 to 20.1 and the property was used in an SQL filter, it gave me an SQL error at the start of the webapp. I tried several date formats for the initial value, but none gave the good interpretation.

Simple test in weborder sample (order.wo):

Define this on the cWebvieuw
Code:
{ WebProperty = Server}
Property Date pdVanaf 01/01/1990
Define a procedure onload:
Code:
    
Procedure OnLoad
        Date dVanaf
        Integer iValue
        WebGet pdVanaf to dVanaf
        Move (DateGetYear (dVanaf)) to iValue
End_Procedure
The value of iValue is 1 and not 1990.


Regards IJmert van Gorsel.