I saved some screenshots to show how easy it can be (in some cases) to get Copilot to help you with simple coding tasks.
These were my prompts:
1. Hello, please suggest how to code a powershell script to convert values like "1724143246792" to a timestamp format of YYYYMMDD-hhmmss
2. The script should take the input value as a parameter
3. Thank you but it isn't giving the right date. 1724143246792 should convert to approximately 20240819-132248, but the above script gives 16010102-235334
4. Thank you, that works better. But the output time is in UTC and I would like it in Eastern US time
5. Thank you, that is good. If the input value is from the summer, will the output be in EDT, or will it always be in EST?





These were my prompts:
1. Hello, please suggest how to code a powershell script to convert values like "1724143246792" to a timestamp format of YYYYMMDD-hhmmss
2. The script should take the input value as a parameter
3. Thank you but it isn't giving the right date. 1724143246792 should convert to approximately 20240819-132248, but the above script gives 16010102-235334
4. Thank you, that works better. But the output time is in UTC and I would like it in Eastern US time
5. Thank you, that is good. If the input value is from the summer, will the output be in EDT, or will it always be in EST?




