Useful SQL macro for dates

Here some utilities to simplify the handling of dates…

More...