Posted In: Java Script

JS: Finding Number Of Working Days between 2 dates

Leave tracking application often required to calculate number of days between the range of leave dates. To calucalte the actual leave days we exclude weekends and any holidays comming between the date range. Following code take care of both weekends and Public Holidays — <script> var monthNames = {jan:0,feb:1,mar:2,apr:3,may:4,jun:5, jul:6,aug:7,sep:8,oct:9,nov:10,dec:11}; // List of Holiday (Exclude […]

Read More

Tags: Tags:

by , on January 3rd, 2019

Posted In: Date, Java Core

Convert date string to one format to another

This function will convert date string format to another format. Test

Read More

Tags: Tags:

by , on April 2nd, 2017