Replies: 2 comments
-
care to post an example of what you're trying to do ? I'm pretty sure we forward the underlying datetime object, so you're the one responsible to convert it into your desired format if you want to pass to a string representation of the underlying datetime value. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Powershell was the culprit, not dbatools. Becasuse of the powershell session is set to use the US format all dates where displayed with format mm/dd/yyyy and the Export-CSV also used this format. Solution was to convert the date into a string with the query. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Dear all,
date and time formats in SQL Server follow this convention:
https://learn.microsoft.com/en-us/sql/t-sql/functions/date-and-time-data-types-and-functions-transact-sql?view=sql-server-ver16
But Invoke-DbaQuery changes the datetime format to the currently used format of the powershell session
How can I change this behaviour to have the datetime format be the same as the source?
Thank you very much and kind regards,
Olaf
Beta Was this translation helpful? Give feedback.
All reactions