Eg: boolean isActive = False;
Date:Ad vlue that indicates a particular day. Date values contain no information about time. Date values must always be created with a system static method.
Data mydate = Date.newinstance(2013,05,15);
output is 2013-05-15 00;00;00
Time and DateTime: These are types associated with dates and times along with Date data type.The time data types stores times (hours,minutes,seconds). The Date datatypes stores dates (year mnth and days).The DataTime datatype stores both dates and times.
Each of these classes has a newInstance method with which we can construct particular date and time values.
Ex: Time t1 =new newInstance(19,20,1,20);
O/P is 19:20:01
No comments:
Post a Comment