More of Dan's back story can be seen here. Dan says he has been a lawman for 20 years. It was revealed in an earlier episode that Dan was a Captain in the Union Army during the civil war (1861-65). Since Lawman began circa 1880, at this point in Season 4, Dan could have been a lawman for just under 20 years if he served until the end of the war.