title: Powershell Find file LastWriteTime of file and generate .txt file based on last write date
body: <p>In powershell i would like to return a LastWriteTime value from a file in a directory , then write a file back to that directory with (original file name_LastWriteTime.txt) overwriting the previous days file . LastWriteTime i would like in a YYMMDD format </p>
  
  <p>so an example would be to read the LastWriteTime from  c:\foo\originalfile.mdb and then generate a file called  c:\foo\orignalfile_LastWriteTime.txt (LastWriteTime in a YYMMDD) format</p>
  
  <p>Can you advise on a simple method for doing this</p>