sql - Informix cast Date to integer -
hi there way cast date integer 2014/05/29 => 20140509?
because database @ work has such value, , need make comparison. searched internet thing found conversion milliseconds since 1970.
i haven't used informix in ages, believe looking for. first format date string in format want, cast integer.
to_char(mydatefield,'%y%m%d')::integer
Comments
Post a Comment