As the name suggests it is specially made to work with Dates but since it uses SimpleDateFormat so you can also work with Time by using appropriate format.
Latest Version: 6.1
Released: October 7, 2019
Last Updated: July 20, 2020
![image](https://kodular-community.s3.dualstack.eu-west-1.amazonaws.com/original/3X/e/6/e69565119d12abc3a7f7c0c5fa6efe53d17ee0df.png)
![](https://sunnythedeveloper.in/wp-content/uploads/2023/06/image.png)
![image](https://kodular-community.s3.dualstack.eu-west-1.amazonaws.com/original/3X/9/2/9256fcb2ef319094f8dfcae52e0a54d3ea58631a.png)
It has 22 function blocks and 1 event block
It has not so much coplex blocks but some examples can help you to understand its usage.
![image](https://kodular-community.s3.dualstack.eu-west-1.amazonaws.com/original/3X/d/2/d28f34fe345d330cb4c91260ba36ced40da2f748.png)
Returns day of given date.
Note: You can also use DateTime besides Date
![image](https://kodular-community.s3.dualstack.eu-west-1.amazonaws.com/original/3X/1/3/1333452772ff2381e759d2c92f8d84bc0b4b7d75.png)
Returns difference between two dates or datetime in milliseconds.
![image](https://kodular-community.s3.dualstack.eu-west-1.amazonaws.com/original/3X/5/3/539bd1cd292f25b5d5292d3033b5ed46d762da9c.png)
Returns true if first date is after second date else false
![image](https://kodular-community.s3.dualstack.eu-west-1.amazonaws.com/original/3X/2/b/2b8bfbadec90caa0e13b430f14f51345bfbc40a5.png)
Returns true if first date is before second date else false
![image](https://kodular-community.s3.dualstack.eu-west-1.amazonaws.com/original/3X/e/a/ea68e4489f8b8cb301fa85f0ea8b43f0de2cca60.png)
Returns true if both dates are same else false
![image](https://kodular-community.s3.dualstack.eu-west-1.amazonaws.com/original/3X/e/4/e42621aafdbfffc35b3cba65df38e041510781a0.png)
Returns a list of available timezones
![](https://sunnythedeveloper.in/wp-content/uploads/2023/06/image-1.png)
Converts epoch timestamp to date in the given date format in provided timezone
![image](https://kodular-community.s3.dualstack.eu-west-1.amazonaws.com/original/3X/6/7/67cb35d9fe953abcd4a538009658096cfe2ee71d.png)
Returns device’s current date and time
![image](https://kodular-community.s3.dualstack.eu-west-1.amazonaws.com/original/3X/e/c/eca2999d8d079e84d05c21dfd946d8c456f4a976.png)
Returns current date and time in raw format
![image](https://kodular-community.s3.dualstack.eu-west-1.amazonaws.com/original/3X/c/b/cb17c9dc886c84b344ee3f315c39ce3fe9e50726.png)
Returns current epoch timestamp
![image](https://kodular-community.s3.dualstack.eu-west-1.amazonaws.com/original/3X/3/d/3d97622a24c9b4a1bcddcbfc0e6013d6c760d900.png)
Display name of current timezone
![image](https://kodular-community.s3.dualstack.eu-west-1.amazonaws.com/original/3X/6/3/6350bca0c53e72d662991f04d035b5318b314fe8.png)
Returns ID of current timezone
![](https://sunnythedeveloper.in/wp-content/uploads/2023/06/image-2.png)
Converts millis in y d m s format
![image](https://kodular-community.s3.dualstack.eu-west-1.amazonaws.com/original/3X/0/8/0840c90ac0fca13d7b519b992a233ba82a619abb.png)
Converts epoch timestamp to date and time
![image](https://kodular-community.s3.dualstack.eu-west-1.amazonaws.com/original/3X/e/9/e932faf1fe11294f4933f00988d46ea06c5b8fc3.png)
Difference between two epoch timestamps in y d m s format
![image](https://kodular-community.s3.dualstack.eu-west-1.amazonaws.com/original/3X/6/d/6dc369f221265ba7543e50dcb351bc974f941041.png)
Returns offset of current timezone
![image](https://kodular-community.s3.dualstack.eu-west-1.amazonaws.com/original/3X/e/6/e68c6d090073d30d08ed1f498e0223acf53e2b12.png)
Converts rawoffset(int) to offset
![](https://sunnythedeveloper.in/wp-content/uploads/2023/06/image-3.png)
Gets offset from timezone id
![image](https://kodular-community.s3.dualstack.eu-west-1.amazonaws.com/original/3X/f/8/f82d2e58975ec48b08ea0dd72e70b9523cf5b84f.png)
Returns true if local datetime is in day light savings
![](https://sunnythedeveloper.in/wp-content/uploads/2023/06/image-4.png)
Returns a list of available timezones in given offset
![image](https://kodular-community.s3.dualstack.eu-west-1.amazonaws.com/original/3X/a/2/a23dc8fc7eb5ac762d8fa907ac6950375317ea82.png)
Returns DST savings of current timezone in milliseconds
![component_method](https://kodular-community.s3.dualstack.eu-west-1.amazonaws.com/original/3X/e/6/e65b96b3ad17a96d2ee1b19c6e1071c5fe9311b3.png)
Requests to NTP server to get online date time in milliseconds and raises event ‘GotOnlineDateTime’ with epoch timestamp and response.If any error occurs then timestamp will be ‘0’
Please consider donating some amount to keep me motivated.
Hope it helps!