Writes the current date into the document. There are a number of different Swedish standard formats available and an additional possibility to specify a general system and culture dependent formats or more precise custom formats.

The code inserted is very simple as the sample below shows.

Component properties
Category AS Date
Version 1.0
Complies with Xhtml 1.0 / 1.1 rules Yes
Supported server programming languages C# Visual Basic.NET
Output content type inline

When to use

This component provides a convenient way of displaying the current date or time or both in a Content Studio document.

Programming interface


Predefined date formats
You can select one of the predefined Swedish formats
  • yyyy-MM-dd (2001-03-01)
  • yyyy-MM-dd HH:mm (2001-03-01 12:31)
  • d MMMM yyyy (1 mars 2001)
  • Day den d MMMM yyyy (Måndagen den 1 mars 2001)
- or -
  • a custom format


A custom date/time format should comply with the .NET DateTimeFormatInfo class specification.

Ex. system aware formats like "D" (long date) "d" (short date) "G" (General long date/time) "g" (general short date/time) and exact formats like "yyyy-MM-dd HH:mm:ss" which is the standard Swedish date/time format.