Skip to main content
Home

Search form

Menu

Search form

  • What's new in SkyVault
  • SkyVault 2.0 overview
  • Video tutorials
  • Using SkyVault
  • Developing
    • Introduction
    • Architectural Overview
    • Overview of SkyVault APIs
    • Content modeling
    • Developing Extensions
      • Web scripts
        • Repository-tier web scripts
          • Understanding web scripts
          • Web script types
          • Web Script Framework
          • Invoking web scripts
          • Working with client limitations
          • Exception handling in web scripts
          • Caching
          • Authenticating web scripts
          • Forms and web scripts
          • Internationalization (i18n)
          • Java-backed web scripts
          • Tutorials
          • Template files
          • Template models
          • Default model objects
          • Default model methods
          • TemplateNode API
          • Classification API
          • Current Date
          • JSP Page
          • People API
          • VersionHistoryNode API
          • Workflow API
      • Presentation-tier web scripts
    • Extension packaging
    • SkyVault Public Java API
  • Share extensions
  • Developing Client Applications
  • SkyVault SDK 2.1.1
  • Copyright
  • Disclaimer
  • You are here

    SkyVault 2.0 » Developing » Developing Extensions » Web scripts » Repository-tier web scripts » Repository FreeMarker Template reference

    Current Date

    The date object returns the current date.

    In FreeMarker there is no such variable as today. Therefore, the current date (as a new Date() Java object) is provided in all templates as the date object in the root of the model.

    Example

    The following code snippet shows an example of use:

    
    <#assign datetimeformat="EEE, dd MMM yyyy HH:mm:ss zzz">
    ${date?string(datetimeformat)}
    
    
    Parent topic: SkyVault Repository FreeMarker Template reference

    © 2017 TBS-LLC. All Rights Reserved.    Follow @twitter