The final line I came up with to resovle this is:

Code:
$strLastaccess=Left (GetFileTime($strPath+"\"+$filename,2),10)

_________________________
I haven't failed. I just found another way that did not work.