Insert Date and Time

Top Previous Topic Next Topic  Print this topic

Overview: This dialog can be used for inserting a date and/or time value in the XF Template document.

 

Accessing: The Date/Time button located in the Text group under the Insert tab must be selected.

 

Insert_date_and_time

 

There are various Available Formats from which the used can choose.

Also, the Update Automatically option is available. It can be enabled by checking the appropriate check box.

 

Example: sample .fo file where the Insert Date and Time option has been used:

 

 

<?xml version="1.0" encoding="utf-8" ?>

<xfd:document xmlns:xfd="http://www.ecrion.com/xfd/1.0" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xf="http://www.ecrion.com/xf/1.0" xmlns:xc="http://www.ecrion.com/2008/xc" xmlns:svg="http://www.w3.org/2000/svg">

       <xfd:localization>

               <xfd:locale language-id="en_US" language-name="English (United States)" />

       </xfd:localization>

       <fo:layout-master-set>

               <fo:simple-page-master master-name="Letter Page" page-width="8.500in" page-height="11.000in">

                       <fo:region-body region-name="xsl-region-body" margin="0.700in" />

                       <fo:region-before region-name="xsl-region-before" display-align="after" extent="0.700in"/>

                       <fo:region-after region-name="xsl-region-after" display-align="before" extent="0.700in"/>

                       <fo:region-start region-name="xsl-region-start" extent="0.700in"/>

                       <fo:region-end region-name="xsl-region-end" extent="0.700in"/>

               </fo:simple-page-master>

       </fo:layout-master-set>

       <fo:page-sequence master-reference="Letter Page">

               <fo:static-content flow-name="xsl-region-before" font-size="12pt" font-family="Times">

                       <fo:block>&#x00A0;</fo:block>

               </fo:static-content>

               <fo:static-content flow-name="xsl-region-after" font-size="12pt" font-family="Times">

                       <fo:block>&#x00A0;</fo:block>

               </fo:static-content>

               <fo:static-content flow-name="xsl-region-start" font-size="12pt" font-family="Times">

                       <fo:block>&#x00A0;</fo:block>

               </fo:static-content>

               <fo:static-content flow-name="xsl-region-end" font-size="12pt" font-family="Times">

                       <fo:block>&#x00A0;</fo:block>

               </fo:static-content>

               <fo:flow flow-name="xsl-region-body" font-family="Times" font-size="12pt">

                       <fo:block><xfd:field xpath="$XFCrtLocalDateTime" format="date:M/dd/yyyy"/></fo:block>

               </fo:flow>

       </fo:page-sequence>

</xfd:document>

 

 

There are multiple available formats for date and time, as listed below.

 

Available Format

Effective Format

3/14/2008

M/dd/yyyy

Friday,March 14,2008

EEEE,MMMM dd,yyyy

3/14/08

M/dd/yy

2008-03-14

yyyy-MM-dd

14-Mar-08

dd-MMM-yy

3.14.2008

M.dd.yyyy

Mar.14,08

MMM.dd,yy

14 March 2008

dd MMMM yyyy

March 08

MMMM yy

Mar-08

MMM-yy

3/14/2008 2:36 PM

M/dd/yyyy h:mm a

3/14/2008 2:36:54 PM

M/dd/yyyy h:mm:ss a

2:36:54 PM

h:mm:ss a

14:36

HH:mm

14:36:54

HH:mm:ss