Between coupon dates
Bonds usually settle between coupon dates, and the buyer pays the seller the coupon interest earned since the last payment, the accrued interest:
Accrued interest = coupon per period x (days since last coupon / days in the period)
The full price (or dirty price) is the present value of the cash flows on the settlement date. The flat price (or clean price) is the full price minus accrued interest, and it is the price dealers quote, so that the quote doesn't jump on each coupon date. To get the full price, take the price at the last coupon date and roll it forward: full price = price at last coupon x (1 + r)^(t/T), where t is days since the last coupon and T the days in the period. Day counts follow the bond: actual/actual for US Treasuries, 30/360 for most US corporate bonds.