[Logo] Forums for GrailsFlow, Weceem, XSLfast
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Current Date  XML
Forum Index » XSLfast Forum
Author Message
lonnie



Joined: 24/05/2010 20:05:12
Messages: 6
Offline

How do you add the current date to the form?
Victor Krapivin



Joined: 04/06/2009 10:12:44
Messages: 54
Online

Please do the following:

1. If you want to type current date in existing text, please open it. If not, please create new one.

2. For selected text, open text editor (double click). Now, please move text caret to place you want to, and type two figure braces: It means you've placed empty variable inside static text, and now you need to place such expression inside.

3. Now, move text caret inside braces, to enable tool bar at the right of the text editor (e.g. buttons String, Today, etc). Click on Today and choose Now from pull-down menu (or yesterday / tomorrow if it more suitable). It will type proper function call inside your variable, as follows: This text is editable so you can add more functions from menu, by selecting fragment of the expression and clicking to tool bar at the right side.

For example, this expression means only day of month:

4. If you need to change default text formatting of this variable, please do the following:

  • Right click on variable, then select Convert -> Date/Time menu point. It informs XSLfast to use this variable as date/time.

  • Right click again, and now follow to menu point Properties. In the inspector window, please click on 'Format' text.

  • You'll see window with date/time formatting details. Here you can specify in which form and in which separators your date/time will be set.


  • Best regards,
    Victor Krapivin
    [WWW]
    lonnie



    Joined: 24/05/2010 20:05:12
    Messages: 6
    Offline

    Thank you
     
    Forum Index » XSLfast Forum
    Go to:   
    Powered by JForum 2.1.8 © JForum Team