Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 10045

displaying military time in SSRS

$
0
0

I need to display time in the following format

"yyyyMMdd hhmm"  using military time.  The SQL returns the correct military time, but using the format "yyyyMMdd hhmm" I'm getting standard time. 

If I format the date using FormatDateTime(fieldname,"What needs to go here to get the military date format I need?)

I figured it out - in SQL  format(StartDateTime,'yyyyMMdd HHmm') as militarystartdatetime...the difference - hh returns standard time HH returns 24 hour time  - I just saw Olaf's answer  he should get the vote.


Samyra Chrisp




Viewing all articles
Browse latest Browse all 10045

Trending Articles



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