a =_SHELLHIDE("PowerShell -ExecutionPolicy Bypass "+CHR$(34)+"&'"+_STARTDIR$+"\GetNewDate.ps1';exit $LASTEXITCODE"+CHR$(34)
The PowerShell script I'm editing would send the date that the user picked back in the MMDDYYYY format and use it as an Int32 to pass it back as the $LASTEXITCODE so that it can be stored in "a". Then you could convert it to a string and read it as a date using your own date parsing functions. For instance, today's date could come back to QB64 as:
This would prevent you from having to output the date to a text file and read it back in. :) [ This attachment cannot be displayed inline in 'Print Page' view ] [ This attachment cannot be displayed inline in 'Print Page' view ]