Rev 92 | Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1 | fvelez | 1 | |
2 | |||
3 | function set(form, value){ |
||
4 | form.dispatch.value = value; |
||
5 | } |
||
6 | |||
7 | function getFileMonth(path) |
||
8 | { |
||
9 | var fso, f, s; |
||
10 | |||
11 | fso = new ActiveXObject("Scripting.FileSystemObject"); |
||
12 | f = fso.GetFile(path); |
||
13 | |||
14 | return(new Date(f.DateLastModified).getMonth() + 1); |
||
15 | } |
||
16 | function getFileYear(path) |
||
17 | { |
||
18 | var fso, f, s; |
||
19 | |||
20 | fso = new ActiveXObject("Scripting.FileSystemObject"); |
||
21 | f = fso.GetFile(path); |
||
22 | |||
23 | return(new Date(f.DateLastModified).getYear()); |
||
24 | } |
||
25 | function getFileDay(path) |
||
26 | { |
||
27 | var fso, f, s; |
||
28 | |||
29 | fso = new ActiveXObject("Scripting.FileSystemObject"); |
||
30 | f = fso.GetFile(path); |
||
31 | |||
32 | return(new Date(f.DateLastModified).getDate()); |
||
33 | } |