Okay so I wrote some code and it seems like it could go a lot faster but I am having trouble thinking about how to make it faster. it uses the "test.csv" file I provided below just make "test.csv" in the same folder with the code and it should run(SLOWLY!) The code: #include-once #include <array.au3> #Include <Date.au3> ;$StartDate = '2009-09-01 00:00:00' ;$EndDate = '2009-09-02 00:00:00' dim $dates[1][2]=[[0]] $file=FileOpen(@ScriptDir&"\test.csv", 0) $csv=StringRegExp(FileRead($file),"(.*?)"&@CRLF,3) FileClose($file) $exitloop=0 for $i=0 to ubound($csv)-1 $csvSplit=StringSplit($csv[$i],",") $tarr=StringRegExp($csvSplit[1],"(.*?)\.",1) $csvSplit[1]=$tarr[0] $tarr=StringRegExp($csvSplit[2],"(.*?)\.",1) $csvSplit[2]=$tarr[0] $diff=_DateDiff('s',$csvSplit[1],$csvSplit[2]) for $d=1 to $diff $curDate=_DateAdd('s',$d,$csvSplit[1]) $found=0 for $e=0 to UBound($dates)-1 if string($dates[$e][0])=$curDate Then $found=1 $dates[$e][1]+=1 ExitLoop EndIf Next if $found=0 Then reDim $dates[ubound($dates)+1][2] $dates[ubound($dates)-1][0]=$curDate $dates[ubound($dates)-1][1]=1 EndIf Next Next _ArrayDisplay($dates) The "test.csv" file I am working with: 2009-09-01 07:59:08.257,2009-09-01 08:00:46.080 2009-09-01 08:02:11.247,2009-09-01 08:03:01.807 2009-09-01 08:05:32.823,2009-09-01 08:06:50.387 2009-09-01 08:08:40.807,2009-09-01 08:10:18.650 2009-09-01 08:09:10.340,2009-09-01 08:10:48.153 2009-09-01 08:09:12.887,2009-09-01 08:10:31.433 2009-09-01 08:11:57.387,2009-09-01 08:12:44.590 2009-09-01 08:12:00.450,2009-09-01 08:13:31.247 2009-09-01 08:29:55.717,2009-09-01 08:30:43.093 2009-09-01 08:30:05.657,2009-09-01 08:30:18.000 2009-09-01 08:31:09.453,2009-09-01 08:31:58.610 2009-09-01 08:31:21.703,2009-09-01 08:32:11.127 2009-09-01 08:32:55.033,2009-09-01 08:33:42.270 2009-09-01 08:33:06.940,2009-09-01 08:34:42.567 2009-09-01 08:33:19.283,2009-09-01 08:34:44.693 2009-09-01 08:33:37.690,2009-09-01 08:34:22.927 2009-09-01 08:33:37.910,2009-09-01 08:34:28.880 2009-09-01 08:33:42.253,2009-09-01 08:33:56.753 2009-09-01 08:34:22.723,2009-09-01 08:35:08.490 2009-09-01 08:34:50.833,2009-09-01 08:35:50.960 2009-09-01 08:35:03.537,2009-09-01 08:35:50.193 2009-09-01 08:35:16.553,2009-09-01 08:36:03.397 2009-09-01 08:35:35.147,2009-09-01 08:36:22.380 2009-09-01 08:44:33.970,2009-09-01 08:45:20.453 2009-09-01 08:46:38.003,2009-09-01 08:47:24.127 2009-09-01 08:57:41.187,2009-09-01 08:57:48.517 2009-09-01 08:57:48.267,2009-09-01 08:58:22.077 2009-09-01 09:44:56.587,2009-09-01 09:45:11.803 2009-09-01 10:25:07.787,2009-09-01 10:26:25.727 2009-09-01 10:32:51.000,2009-09-01 10:34:03.423 2009-09-01 10:34:55.673,2009-09-01 10:35:03.003 2009-09-01 10:35:19.300,2009-09-01 10:36:04.817 2009-09-01 10:39:58.273,2009-09-01 10:41:05.383 2009-09-01 10:44:07.263,2009-09-01 10:44:37.153 2009-09-01 10:44:55.437,2009-09-01 10:46:06.123 2009-09-01 10:47:36.377,2009-09-01 10:48:52.457 2009-09-01 10:48:29.127,2009-09-01 10:49:49.753 2009-09-01 10:49:33.520,2009-09-01 10:50:20.363 2009-09-01 10:50:01.160,2009-09-01 10:51:05.973 2009-09-01 10:51:03.363,2009-09-01 10:52:21.663 2009-09-01 10:51:38.693,2009-09-01 10:52:25.570 2009-09-01 11:00:09.923,2009-09-01 11:00:56.267 2009-09-01 11:00:35.080,2009-09-01 11:01:49.533 2009-09-01 11:00:54.313,2009-09-01 11:01:40.597 2009-09-01 11:01:37.970,2009-09-01 11:02:25.143 2009-09-01 11:01:56.550,2009-09-01 11:02:51.377 2009-09-01 11:03:03.487,2009-09-01 11:03:48.347 2009-09-01 11:03:05.127,2009-09-01 11:03:50.787 2009-09-01 11:07:00.633,2009-09-01 11:08:36.120 2009-09-01 11:39:25.483,2009-09-01 11:40:11.420 2009-09-01 11:39:49.937,2009-09-01 11:40:57.110 2009-09-01 12:20:59.057,2009-09-01 12:21:02.603 2009-09-01 16:35:24.257,2009-09-01 16:35:52.633 2009-09-01 16:35:41.680,2009-09-01 16:36:54.213 2009-09-01 16:36:40.510,2009-09-01 16:37:52.353 2009-09-01 16:39:39.373,2009-09-01 16:40:25.577 2009-09-01 16:42:23.627,2009-09-01 16:43:40.750 2009-09-01 16:42:39.720,2009-09-01 16:43:55.690 2009-09-01 16:42:53.937,2009-09-01 16:44:15.737 2009-09-01 16:43:17.673,2009-09-01 16:44:08.533 2009-09-01 16:43:31.237,2009-09-01 16:44:20.097 2009-09-01 16:44:13.347,2009-09-01 16:44:59.877 2009-09-01 16:44:21.237,2009-09-01 16:45:06.817 2009-09-01 16:44:40.800,2009-09-01 16:45:26.427 2009-09-01 16:44:42.113,2009-09-01 16:45:54.647 2009-09-01 16:44:45.283,2009-09-01 16:46:00.457 2009-09-01 16:44:54.033,2009-09-01 16:46:12.583 2009-09-01 16:45:06.080,2009-09-01 16:46:25.473 2009-09-01 16:45:26.537,2009-09-01 16:46:35.410 2009-09-01 16:45:31.440,2009-09-01 16:46:24.020 2009-09-01 16:46:20.113,2009-09-01 16:47:58.880 2009-09-01 16:46:52.833,2009-09-01 16:48:30.740 2009-09-01 16:47:33.507,2009-09-01 16:49:11.413 2009-09-01 16:47:35.927,2009-09-01 16:48:30.100 2009-09-01 16:47:52.693,2009-09-01 16:48:39.273 2009-09-01 16:48:16.710,2009-09-01 16:49:03.460 2009-09-01 16:48:39.197,2009-09-01 16:51:06.790 2009-09-01 16:48:39.210,2009-09-01 16:49:25.947 2009-09-01 16:48:56.507,2009-09-01 16:49:44.087 2009-09-01 16:49:01.430,2009-09-01 16:49:54.087 2009-09-01 16:49:13.617,2009-09-01 16:50:32.727 2009-09-01 16:49:30.540,2009-09-01 16:50:22.527 2009-09-01 16:49:32.743,2009-09-01 16:50:51.400 2009-09-01 16:53:05.480,2009-09-01 16:53:53.597 2009-09-01 16:53:08.543,2009-09-01 16:53:55.923 2009-09-01 16:53:15.523,2009-09-01 16:54:57.543 2009-09-01 16:53:46.117,2009-09-01 16:55:06.100 2009-09-01 16:54:00.233,2009-09-01 16:55:18.110 2009-09-01 17:15:09.670,2009-09-01 17:16:22.483 2009-09-01 17:17:58.827,2009-09-01 17:19:10.593 2009-09-01 17:18:59.140,2009-09-01 17:19:45.937 2009-09-01 19:07:54.140,2009-09-01 19:09:11.127 2009-09-01 19:47:31.670,2009-09-01 19:48:45.657 2009-09-01 20:05:05.753,2009-09-01 20:06:18.567 Anyone feel like helping? if it helps we could just make it a competition to see who can make it go the fastest