Haggis
24th October 2001, 15:59
I have created a form with a start date field on it. I want to make the initial value todays date. For the life of me I just cannot remember the code for that? I put date in and it returns some date in 1970?
Can anyone help?
nizamudeen
24th October 2001, 16:06
Hi,
Use date() in the default value of the field. This function will return the current system date
Haggis
24th October 2001, 16:15
I put that in the default field but it returns the date 09011970 when I run the form?
I checked the system date and it is todays date???
Haggis
24th October 2001, 17:46
okay I finally remembered the command, sorry for the silly post.
I used utc() and that worked.
Thanks
Embrau
29th October 2001, 11:39
Somewhere in this world there is a program which returns you the baanvalue of a date (input). You can use this datenumber on a field with a date-domain.
Besides, you can change a certain (unimportant) date field, debug and check the value (numbervalue) of the date field. You can use this value for your default on reportfield level or in the reportscript by using an variable.