Hi pmscorca ,
Thankyou for posting your query on Microsoft Q&A platform .
I understand from your query that you want to fetch the current time and display in 24-hour clock format without the AM/PM indicator.
The formatDateTime
function in Azure Data Factory (ADF) can be used to format the current date and time in a specific format.
The format for a 24-hour clock time is
HH:mm:ss
.
Ensure you use HH
for hours in 24-hour format (from 00 to 23) instead of hh
, which is for hours in 12-hour format (from 01 to 12).
The expression which you are using is correct and should be giving the output in 24-hour format. I tried to reproduce the same and got the expected result.
Case1: Using HH
for hours
Case2: Using hh
for hours
Hope it helps. Please let us know if you have further questions.
Kindly mark the answer as accepted if it helped. Thankyou