function sdate($date,$format='Y-m-d') {
    return tool::date_format($date,$format);
}