Well, as far as I recall, Kirby modifies the folder date when you safe through the Panel, not the actual text file.
So what are you actually trying to get? The date attached to the textfile in the filesystem? Then you have to use the modified() method of the Toolkit’s F class