Subversion Repositories bacoAlunos

Rev

Blame | Compare with Previous | Last modification | View Log | RSS feed



function set(form, value){
    form.dispatch.value = value;
}

function getFileMonth(path)
{
    var fso, f, s;

    fso = new ActiveXObject("Scripting.FileSystemObject");
    f = fso.GetFile(path);

    return(new Date(f.DateLastModified).getMonth() + 1);
}
function getFileYear(path)
{
    var fso, f, s;

    fso = new ActiveXObject("Scripting.FileSystemObject");
    f = fso.GetFile(path);

    return(new Date(f.DateLastModified).getYear());
}
function getFileDay(path)
{
    var fso, f, s;

    fso = new ActiveXObject("Scripting.FileSystemObject");
    f = fso.GetFile(path);

    return(new Date(f.DateLastModified).getDate());
}