DP_DateExtension:
round(), ceil() and floor() Examples

Back to the Main Page

All of these examples assume that the library has been imported as noted in the Documentation.

The round() Method

The round() method rounds the date to the selected date part:

The ceil() Method

The ceil() method rounds the date upwards to the selected date part:

The floor() Method

The floor() method rounds the date upwards to the selected date part: