Click here to Skip to main content
15,881,027 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello i have one array list
JavaScript
var tbl_A=[{
	'eid': 1,
	'checkintime': '10:05:00',
	'checkouttime': '02:05:00',
	'Day':'Sunday',
	'Date': '27-04-2014'
	},
	{
	'eid': 2,
	'checkintime': '02:30:00',
	'checkouttime': '04:25:00',
	'Day':'Friday',
	'Date': '25-04-2014'
	},
	{
	'eid': 3,
	'checkintime': '04:30:00',
	'checkouttime': '06:34:00',
	'Day':'Thusday',
	'Date': '24-04-2014'
	},
	{
	'eid':1,
	'checkintime': '09:58:00',
	'checkouttime': '02:15:00',
	'Day':'Sunday',
	'Date': '27-04-2014'
	},
	{
	'eid':2,
	'checkintime': '02:45:00',
	'checkouttime': '04:40:00',
	'Day':'Friday',
	'Date': '25-04-2014'
	},
	{
	'eid':3,
	'checkintime': '05:02:00',
	'checkouttime': '06:15:00',
	'Day':'Thusday',
	'Date': '24-04-2014'
	},
	{
	'eid':1,
	'checkintime': '09:45:00',
	'checkouttime': '02:00:00',
	'Day':'Sunday',
	'Date': '27-04-2014'
	},
	{
	'eid':2,
	'checkintime': '02:15:00',
	'checkouttime': '04:40:00',
	'Day':'Friday',
	'Date': '25-04-2014'
	},
	{
	'eid':3,
	'checkintime': '04:55:00',
	'checkouttime': '06:01:00',
	'Day':'Thusday',
	'Date': '24-04-2014'
	}
	];


i want lowest time as per ID pls help me
JavaScript
for(i=0;i<tbl_A.length;i++)
   {
   var checkin = tbl_A[i].checkintime;
   var checkout = tbl_A[i].checkouttime;
   contacts.push(checkout);
   alert(checkin+checkout)  ;
  }


how can i get
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900