[TEST] Fix deprecated Date methods in ValueMetaTest

Changed deprecated Date.getXYZ() methods to use Calendar, also reformatted the file