Quantcast
Channel: Crystal Reports
Viewing all articles
Browse latest Browse all 1507

Bar chart display time format as am pm

$
0
0

The x-axis in my bar chart is time values of order dates rounded to nearest 10 minutes.  The SQL for the field is: CONVERT (varchar, DATEADD(minute, DATEPART(Minute, dbo.[Completed Orders].[Order Date]) / 10 * 10, DATEADD(Hour, DATEDIFF(Hour, 0, dbo.[Completed Orders].[Order Date]), 0)), 108).  I need to sort by these values (military time) but display them as AM/PM.  Can someone please tell me how to accomplish this?  Thanks.


Viewing all articles
Browse latest Browse all 1507

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>