Hi everyone,

I have a situation where I want to tell a value is of type date or not.

Consider this:

                var b : Date;
                
                var s : String  = describeType( b )[email protected]();
                
                Alert.show(
                        ( b is Date ).toString()
                        + "\n"
                        + ( typeof b )
                        + "\n"
                        + ( s )
                );


I get an alert of:
false
object
null

if I do
var b : Date = new Date();

I get and alert of
true
object
Date

Is there anyway I can work out a variable's type with out having to
declare a value in that variable?

cheers

David

Reply via email to