Here are a few examples for you:
Last Written Date and Time - (cmd.exe) using provided example with for variable reference expansion
FOR %A IN ("%ProgramFiles(x86)%\FolderTransfer4\WRTEUHH.dll") DO @ECHO=%~tA
Last Written Date and Time - (cmd.exe) using where command in for loop, (does not cater for local time outputs using AM/PM notation)
FOR /F "TOKENS=2-3" %A IN ('WHERE /T "%ProgramFiles(x86)%\FolderTransfer4:WRTEUHH.dll"') DO @ECHO=%A %B
Last Written Date only - (cmd.exe) using where command in for loop
FOR /F "TOKENS=2" %A IN ('WHERE /T "%ProgramFiles(x86)%\FolderTransfer4:WRTEUHH.dll"') DO @ECHO=%A
Last Written Date and Time - (batch file) using provided example with for variable reference expansion
@FOR %%A IN ("%ProgramFiles(x86)%\FolderTransfer4\WRTEUHH.dll") DO @(ECHO=%%~tA&PAUSE)
Last Written Date and Time - (batch file) using where command in for loop, (does not cater for local time outputs using AM/PM notation)
@FOR /F "TOKENS=2-3" %%A IN ('WHERE /T "%ProgramFiles(x86)%\FolderTransfer4:WRTEUHH.dll"') DO @(ECHO=%%A %%B&PAUSE)
Last Written Date only - (batch file) using where command in for loop
@FOR /F "TOKENS=2" %%A IN ('WHERE /T "%ProgramFiles(x86)%\FolderTransfer4:WRTEUHH.dll"') DO @(ECHO=%%A&@PAUSE)