Victor,
>I actually had already tried that and had the same problem..but I did find a way around it by using the CTOD() gizmo.
That's interesting that you had a problem, because this code works fine for me once I fixed the minor typo in it.
lcYear = "2000"
lcMonth = "10"
lcDay = "1"
x= {^&lcYear-&lcMonth-&lcDay}
Plesae notes the vars are character not numeric. Also be careful with CTOD as it wis dependant on the SET DATE setting and can give you different results when the SET DATE is changed. If you want to use a function to do this use the DATE() function instead.