ThreadStamp Element

In discussion boards, the ThreadStamp element renders the current server's local time in a specific format (yyyyMMddHHmmss) for sorting purposes.

Syntax

<ThreadStamp
  StripWS = "TRUE" | "FALSE">
</ThreadStamp>

Attributes

Name Description
StripWS Optional Boolean. TRUE if white space is removed from the beginning and end of the value returned.
Parent Elements
Limit

Remarks

Each discussion board has a special threading field that consists of a concatenation of timestamps. The threading value of a discussion item is the threading value of its parent followed by the ThreadStamp value corresponding to the current local time.

Example

In this example CAML is used to render a hidden INPUT element in an HTML form. The value of this element is the first 504 characters of the concatenation of the Threading variable (if present, else the empty string) followed by the value rendered by the ThreadStamp element, which represents the current time.

<RenderPattern Name="NewPattern" DisplayName="NewPattern">
  <HTML><![CDATA[<INPUT TYPE=HIDDEN NAME="]]></HTML>
  <FieldPrefix/>
  <Property Select="Name"/>
  <HTML>" VALUE="</HTML>
  <Limit Len="504" StripWS="TRUE">
    <GetVar Name="Threading" StripWS="TRUE"/>
    <ThreadStamp StripWS="TRUE"/>
  </Limit>
  <HTML><![CDATA[">]]></HTML>
</RenderPattern>

See Also

Universal Attributes for Page Rendering Elements