If we assume that the X will be the appropriate value for A or P.. you can get the datetime parsed through following syntax...
Declare @ADate varchar(20)
Select @ADate = '20080111 0815a'
Select @ADate = Stuff(Stuff(Upper(@ADate),14, 0, ' ') + 'M', 12, 0, ':')
Select Convert(datetime...