Contents   Index   Previous   Next



Date/Time

 

The Date/Time element allows you to display a date or time in the layout. You can use it as a static frame or fill it with dynamic data from the XML source.

Place a Date/Time element by clicking the icon and placing the frame on the page. On double click on the frame a date/time editor opens:

 

 

If you choose a dynamic date/time, then you can drag and drop the node you need from the XML tree on the left or you can enter it in the editing area. If you choose static date/time, then simply enter the text you want to be displayed.

 

By default, the Date input format is "YYYY MM DD" with the separator "-". The default Time input format is "hh:mm" with the separator ":".

 

You can specify your own Input and Output formats for date and time. Open the Format tab in the Date/Time editor window:

 

 

Choose the Date separator, Time separator and Date format for the input data offered in select boxes:

 

 

You can use Predefined output format or Custom output format for date/time. If you choose Predefined output format, then you should determine what element will be used. They can be Date, Time or Date and Time. After making your choice what data will be displayed, specify format and separator, which will be applied on your input data.

 

 

After defining the output format you can see the example with Input and Output data in the format and with the separators you have chosen above:

 

 

If you choose Custom output format, then you should type the wanted format in the window:

 

 

When choosing static text for date/time, you have the possibility of changing the font type, size and style, the text alignment, the text color and the background color.

More:

 

Context menu

Inspector window