Skip to main content
Home

Search form

Menu

Search form

  • What's new in SkyVault
  • SkyVault 2.0 overview
  • SkyVault 2.0 video tutorials
  • Getting Started guides
  • Using SkyVault
  • Admin QuickStart
  • For Developers
    • Customizing Explorer and Share
    • Developing Applications and Extensions
      • Designing your application
      • SkyVault Repository
      • SkyVault Services
      • SkyVault Integration
      • Web Scripts
      • SkyVault Extensions
      • Share extensions
      • Maven SkyVault SDK
      • Programming with Surf
      • Content modeling
      • SkyVault 2.0 API
      • Template files
      • Template models
      • TemplateNode API
      • Classification API
      • Current Date
      • Default Model Methods
      • JSP Page
      • People API
      • VersionHistoryNode API
      • Workflow API
  • SkyVault Public Java API
  • Copyright
  • Disclaimer
  • You are here

    SkyVault 2.0 » For Developers » Developing Applications and Extensions » SkyVault API Reference » 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