getHMS and getDMY in Date, moving some function to FileHandler