Hello, I am attempting to change a date from my Postgres database into a date I can put in a CSV file. However; when I use the Date.to_iso8601(~N[2000-02-28 10:00:23]) function, I get the time part of the datetime truncated off. How do I do the exact same functionality but keep the whole datetime?
I should add that DateTime.to_iso8601 does not return a valid CSV format.
Use NaiveDateTime.to_iso8601 if you want the whole datetime and DateTime.to_iso8601 if you also need timezone offset information. The Date module handles just date related functionality.