Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Dear All,
I have to create hours from date and then want to show hours in AM/PM..
Hour(date) as Hours
resuult is 11,1,12...but I want 11AM,12PM...etc
What to do plz reply..
Rahul
Try:
Mod(Hour(DateTimeField),12)&' '&time(DateTimeField, 'TT') as Hour
Hope, there is an easier way and not just striking.
Hi,
Use
Time(Date,'hh TT')
or
Timestamp(Date,'hh TT'))
Regards
its give 11:22:01 AM format...but I want 11AM(which includes time from 11 to 11:59:59)...
Hi,
Try this in your text Obejct
Time(now(),'hh TT')
Regards
Hi Rahul,
time(Date,'hh TT')
It will give 11 AM as output.
Regards
KC
dear max,
its give result 11am,11am,3pm,3pm....... but I want result having distinct hours ... 11am,3am,4pm...
My required result is shown in attachment ...
It should be 1AM,1PM,3AM,3PM...but not 1AM,1AM(REPEAT)...
Try:
Mod(Hour(DateTimeField),12)&' '&time(DateTimeField, 'TT') as Hour
Hope, there is an easier way and not just striking.
As always ...you are too good tresesco... thanks..