Datepicker and am/pm

Is there a way to work at a Picker with AM and PM?

Now I have 24 hours per day, but I want 12 and I want to switch between am and pm:

cols: [
		  
			// Hours
			{
				values: (function () {
					var arr = [];
					for (var i = 0; i <= 23; i++) { arr.push(i); }
					return arr;
				})(),
			},
			// Divider
			{
				divider: true,
				content: ':'
			},
			// Minutes
			{
				values: (function () {
					var arr = [];
					//for (var i = 0; i <= 59; i++) { arr.push(i < 10 ? '0' + i : i); }
					for (var i = 0; i <= 0; i++) { arr.push(i < 10 ? '0' + i : i); }
					return arr;
				})(),
			}
		]

Thanks