>Hello Naomy
>
>the values are:
>myyear = 2013
>mymonth = 07
>myday = 18
>myhora = 10
>myminutos = 00
>
>Thanks for your reply.
>Luis Santos
Before sending these values to the DATETIME function apply CAST(myYear AS I) in the values. As I said, you need to pass numbers, not strings to the DATETIME function.
If it's not broken, fix it until it is.
My Blog