Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
> SELECT * FROM table WHERE date <= TODAY How can I convert TODAY in a> numerica integer 960625 (=YYMMDD)?
> The numeric field date contains the date's in the format. Example: 960625
> for 25th June 1996
>
Try something like this:
SELECT * FROM table
WHERE date <= (((YEAR(TODAY) - 1900) * 10000) + MONTH(TODAY) * 1000 +
DAY(TODAY))
-------------------------
Carlos Antonio Ruiz G'mez
dmys2@colomsat.net.co
Colombia, SurAm'rica
Your privacy choices
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.