Skip to content

The search box in the website knows all the secrets—try it!

For any queries, join our Discord Channel to reach us faster.

JasperFx Logo

JasperFx provides formal support for Marten and other JasperFx libraries. Please check our Support Plans for more details.

Working with Dates

SQL Server has functions for modifying a date, such as DATEADD(…)

Postgres has an interval type which allows you to add/remove in a much more semantic manner.

For example, in SQL Server to add 5 days to the current date we might do:

sql
SELECT DATEADD(day, 5, getutcdate())

In Postgres we would achieve the same like so:

sql
SELECT now() +5 days’::interval;

Released under the MIT License.