Skip to content
This repository has been archived by the owner on May 27, 2021. It is now read-only.

Update date.js #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Commits on Apr 20, 2020

  1. Update date.js

    DD-MMM-YYYY (20-Apr-2020) format not  Validated so I changed following code. Please re write if so
    
     var year  = date[$.inArray('YYYY', dateFormat)],
                    month = date[$.inArray('MM', dateFormat)],
                    monthFul = date[$.inArray('MMM', dateFormat)],
                    day   = date[$.inArray('DD', dateFormat)];
                
                    if (isNaN(month)) {
    					var monthArr = ['jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', 'dec'];
    					month = ($.inArray(monthFul.toLowerCase(), monthArr)+1).toString();
    				}
    rahulsalokhe authored Apr 20, 2020
    Configuration menu
    Copy the full SHA
    d66604d View commit details
    Browse the repository at this point in the history