Quantcast
Viewing all articles
Browse latest Browse all 3131

DateTime formating and the decimal formating

Hi,

We are facing with a problem of formatting the date time values and the decimal values when creating a pdf template using XML.

What our code base as follows.
   <Row>
<Cell PaddingTop="10"  PaddingBottom ="3">          <Border>      </Border>
          <Text IsSpaced="true">  <Segment FontName="Times-Roman"  FontSize="10" IsTrueTypeFontBold="true" Color="rgb 0 0 0" >Date Opened</Segment>
          </Text>
        </Cell>
        <Cell  BackgroundColor="rgb 240 240 240"  PaddingTop="10"  PaddingBottom ="3">
          <Border>             </Border>
          <Text IsSpaced="true">   <Segment FontName="Times-Roman" FontSize="10">[SPFieldValue:Date_Opened]</Segment>
          </Text>
        </Cell>
      </Row>
   <Row>
<Cell PaddingTop="10"  PaddingBottom ="3">          <Border>      </Border>
          <Text IsSpaced="true">  <Segment FontName="Times-Roman"  FontSize="10"IsTrueTypeFontBold="true" Color="rgb 0 0 0" >Opening Value</Segment>
          </Text>
        </Cell>
        <Cell  BackgroundColor="rgb 240 240 240"  PaddingTop="10"  PaddingBottom ="3">
          <Border>             </Border>
          <Text IsSpaced="true">   <Segment FontName="Times-Roman" FontSize="10">[SPFieldValue:Opening_Value]</Segment>
          </Text>
        </Cell>
      </Row>


output values are like this.
Date Opened   4/8/2014 12:30:00 PM
Opening Value   1.00000000000000

above values should be format like 
Date Opened   4/8/2014 
Opening Value   1

Please proved the way of doing this.

Thanks.

Viewing all articles
Browse latest Browse all 3131

Trending Articles