What Is Time Datatype?
A value that indicates a particular time. Time values must always be created with a system static method. Time datatype stores time (hours, minutes, seconds, milliseconds).
Syntax Of Time Datatype
Time t = Time.newInstance(12,5,2,7);
What Is DateTime Datatype?
A value that indicates a particular date and time.
Syntax Of DateTime Datatype
DateTime dt = DateTime.newInstance(1997,1,31,7,8,16);
