%% Find the Yield for a Treasury Bill Using datetime Inputs
% This example shows how to use datetime inputs to return the yield for a Treasury bill, given the settlement date of a Treasury bill is February 10, 2000, the maturity date is August 6, 2000, the par value is $1000, and the price is $981.36.

Yield = yldtbill(datetime('10-Feb-2000','Locale','en_US'), datetime('6-Aug-2000','Locale','en_US'), 1000, 981.36)

% Copyright 2012 The MathWorks, Inc.