Highlighted

script date object

Avatar

Avatar

_jerome_dinnat_

Avatar

_jerome_dinnat_

_jerome_dinnat_

29-09-2008

Hi,



I have a date/time field.



I want to initialize it with the current date.



In the initialize event of this the field, I have an issue with this script :



xfa.host.messageBox("before new date()");

var d1 = new Date();

xfa.host.messageBox("after new date()");



The line var d1 = new Date(); doesn't work. I work with designer 8.1.1, the language is Javascript and it is run at client.



Any ideas will be appreciated.



Thanks

Replies

Highlighted

Avatar

Avatar

pguerett

Total Posts

7.7K

Likes

611

Correct Answer

692

Avatar

pguerett

Total Posts

7.7K

Likes

611

Correct Answer

692
pguerett

29-09-2008

It works fine for me ....can you post your form to livecycle8@gmail.com and I will have a look.