Name

Timestamp

Synopsis

timestamp = Context.Timestamp

Return s a DateTime object containing the date and time of the request on the server.

Parameters

timestamp

An Object variable of type DateTime.

Example

The following example retrieves the date and time of the request and displays it in the Message label control:

Sub Page_Load(  )
   Message.Text = "Date/Time of Request: " _ 
   & Context.Timestamp
End Sub

Get ASP.NET in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.