hi,
I have attached the input and also the output which I required.
from input 07:00:00 to output 7
attaching data
Hi @shahnawaz_khan
DateTimeFormat formula will do it:
Use %k instead of %H if you want to have the output as one digit (0, 1, 2 etc) but it adds a space before so will need tidying up
I would say @davidskaife is the most efficient; if you want to avoid using the datetime functions then something like this will also work
IIF( left(left(ToString([Input]),2),1)="0", right(left(ToString([Input]),2),1),left(ToString([Input]),2))