[#121] DRY - Extract getDate() function