I just tried the following code with the Active4D demo database running compiled:

        method "test"($value; $format)
                $type := type($value->)
                
                case of
                        :($type=is date)
                                execute("$converted:=string($value->; " + $format + 
")")
                                return ($converted)
                                
                else
                        return ("not a date")
                end case
        end method
        
        all records([ingredients])
        writebr(test(->[ingredients]mod_date; "long"))

It worked fine. Try this with your database (using ->[Job_Steps]Date_Modified) and see what happens.

Regards,

   Aparajita
   Victory-Heart Productions
   [EMAIL PROTECTED]
   www.aparajitaworld.com

   "If you dare to fail, you are bound to succeed."
   - Sri Chinmoy   |   www.srichinmoylibrary.com



Reply via email to