You need to sign in to do that
Don't have an account?

Display Hour and Minutes in Text field
I have been trying and searching for a while and I can't seem to find a way to display the Time specificly the hour and minutes from and Date time field. I would like to display the Hour and Minute from the NOW() function in salesforce formula editor. If anyone can give me some tips that would be great. Thanks.
LEFT(RIGHT(TEXT(NOW()), 10),6)
All Answers
DateTime dt=System.now();
String str=dt.format('HHMMSS');
LEFT(RIGHT(TEXT(NOW()), 10),6)
can any one give me solution of that previous query
Hope you figured it by now. Still
Left - 10, Right -6,
now() - 2013-03-05 06:53:43Z
After 10th digit from right points to 06
&& 6th digit to 53
Hence the time 06:53