Assign a date value to global date var

Hi, I’m tryng to assig a specific date value to a global variable. I define a global var as date and I’m trying to do:

d1:=01/01/2007;
or
d1:=‘01/01/2007’;
or
d1:=#01/01/2007#;

but i recive errors of type conversion when compile. How can I assing a date value to a date global var?

Thanks to all.

d1 := 080296D

Thanks, but how can I convert dates in this format? What is the rule? eg: 01/11/2007?

Thanks

D1 := 01112007D; You just put a D at the end of the date.

Thanks to all.