//
//Transrate date to Jurian(Julius) date
//

//Syntax
//Caution return is number type. argument is string type.
jdate=undate("yyyy/mm/dd");


//Remarks
//Transrate Jurian date to normal date
//(Caotion) return is integer type. (ex 20091020)
date=dater(jdate);

//Example 1
get bond@;

//calculate year span from execute date to 2008/09/30.
tod=undate("2008/09/30");
fromd=undate(exedate);
span=(tod - fromd)/365.25;

hist span;