you can use vbscript. this example gets the file modified date to a variable "theDate". Use the second() method to get the seconds. Use Year(), Month() , Day() , Hour(), Minute() to get the other respective times/dates.
Set objFS = CreateObject( "Scripting.FileSystemObject" )
strFile=WScript.Arguments(0)
Set objFile = objFS.GetFile(strFile)
theDate = objFile.DateLastModified
WScript.Echo Second(theDate)