01-16-2020 09:35 AM
Is it possible to separate the intervals which are reported as the full date string INCLUDING the timeframe, into date separately from time? I'm looking to collect data per time interval regardless of date and have yet to find a solution for it.
01-16-2020 10:35 AM
Hi Bill,
To separate date and time you can use the CONVERT function with the format description:
CONVERT(NVARCHAR, DateTime, Format)
Available formats can be found here: https://www.mssqltips.com/sqlservertip/1145/date-and-time-conversions-using-sql-server/.
You will need to modify interval queries and reports by adding the additional select for the date and time conversion.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide
Log in to Community