StartDate Property (.NET)

 

This property represents the date and time the statistics collection initially started. If you do not use the LoadFromFile method, the StartDate represents the date and time when the first hit was processed by CountryHawk since the last time your web services or application was started. This is a static property.

 

If you are using the LoadFromFile method, the StartDate represents the date and time when you first started collecting the statistics. The original starting point of your stats collection is saved, along with the statistical data, by the PersistToFile method and loaded each time by explicitly by the LoadFromFile method on implicitly upon CountryHawk's initialization.

Syntax:

 startDateTime = CountryStats.StartDate

Returns:

Returns the date and time the statistics collection initially started.

VB.NET Example:

 

Response.Write("Stats as of: " + CountryStats.StartDate.ToString())

 

C# Example:

 

Response.Write("Stats as of: " + CountryStats.StartDate.ToString());

Note: This property is read-only.

 

Note: This property requires the Enterprise Edition of CountryHawk.