Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

When using the Export-csv function in Powershell to export data to a CSV file, date columns can sometimes be converted into a string format instead of a date format. This can make it difficult to work with the data in other applications or scripts that rely on date calculations and comparisons. To avoid this issue, it is recommended to properly format date columns before exporting to CSV or use a different method to export data, such as piping to Out-File with a properly formatted delimiter.