Hi Guys, I have a DataTable like this,
AccessDateTime | Direction
2010-09-15 12:12:49 | IN
2010-09-15 12:36:03 | OUT
2010-09-15 12:53:05 | IN
2010-09-15 14:04:19 | OUT
2010-09-15 14:17:35 | IN
2010-09-15 16:07:57 | OUT
2010-09-15 16:10:57 | OUT
2010-09-15 18:43:18 | OUT
I need a fast logic to convert the data into this format
Date | In Time | Out Time
2010-09-15 12:12:49 | 12:36:03
2010-09-15 12:53:05 | 14:04:19
2010-09-15 14:17:35 | 16:07:57
2010-09-15 N/A | 16:07:57
2010-09-15 N/A | 16:10:57
2010-09-15 N/A | 18:43:18
Please help me to find any sample code or any advice is highly appreciated.
Thanks