function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Rick LambRick Lamb 

Time Format for a Field

I am trying to create a "Time" field for users to enter the amount of time they spent on a case.  If I make it a Date/Time field, I get all the calendar stuff.  If I use a number field, then it is decimal.

 

How des one create a field that deals with hours and minutes?

 

Thanks . . .

Best Answer chosen by Admin (Salesforce Developers) 
ShaTShaT

Hi,

 

Create a text field and validate it to ender time format only . For time there is no specific data type in salesforce

 

 

Thanks

Shailu

All Answers

ShaTShaT

Hi,

 

Create a text field and validate it to ender time format only . For time there is no specific data type in salesforce

 

 

Thanks

Shailu

This was selected as the best answer
Rick LambRick Lamb

Who would have thought a TEXT field?  Guess I am not a programmer.  Thanks for the help.