Home | Top | Free Ajax Editor | JavaScript Editor JavaScript EditorGet Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.


fileCreatedDate Property

Retrieves the date the file was created.

Syntax

HTML Scripting
N/A
[ sDate = ] object . fileCreatedDate

Possible Values

sDate String that receives the date the file was created. For example, Monday, December 08, 1997.

The property is read-only. The property has no default value.

Example

This example implements the fileCreatedDate property to count the number of days since the document was created.

 

<SCRIPT>
window.onload=fnInit;
function fnInit()
{
// Date document was created
var oCreated=new Date(document. fileCreatedDate );
// Today's Date
var oToday=new Date();
// There are 86400000 milliseconds in a day
var iMilliSeconds=86400000;
var iDaysBetween=(oToday.getTime() - oCreated.getTime()) / iMilliSeconds;
alert("Created: " + oCreated + "\nDays since created: " + parseInt(iDaysBetween)); }
</SCRIPT>

Standards Information

There is no public standard that applies to this property.

Applies To

document Platform Version
Win16: 4.0
Win32: 4.0
Windows CE: 4.0
Unix: 4.0
Mac: 4.0
 
document , IMG
Home | Top | Free Ajax Editor | JavaScript Editor JavaScript EditorGet Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.