Quantcast
Channel: SCN : Unanswered Discussions - SAP Crystal Reports
Viewing all articles
Browse latest Browse all 4814

Determining a Time ID from a DateTime field

$
0
0

I have a DT field that I want to break into 1/2hr designators (so 1-48).  Is there a better way to do this than with just a lengthy CASE WHEN (or "old school" IF THEN ELSE)?

 

So, for example 03/12/2014 12:05:30am becomes 1 (1st half hour after midnight), while 03/12/2014 11:37:33pm would be 48 (last half hour before midnight).

 

Thanks much!

 

(fwiw, CR2k8)



Viewing all articles
Browse latest Browse all 4814


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