Date format changed from 'MM/DD/YYY' to 'DD/MM/YYYY'
Restructured & invalid if condition's syntax corrected.
get_file_node() modified: Missing for loop added so that list of files could be iterated properly.
date format-string replaced from '%m/%d/%Y' to '%d/%m/%Y'