Skip to main content

System Placeholders

The following system placeholders are available:

NameDescription
{CurrentDate}Returns the current date. Supports a format string.
{CurrentTime}Returns the current time. Supports a format string.
{Calc}Calculates math. Format: {Calc(Expression)}
{MD5}Calculate an MD5 hash. Format: {MD5(input)}
{ProductNameWithCompany}Returns SLG Broadcast Suite
{ProductNameWithVersion}Returns SLG Broadcast Suite 2024.3

Examples

PlaceholderResult
{CurrentDate}15.06.2024
{CurrentTime}21:15:07
{Calc(35+7)}42
{MD5(Broadcast Suite)}f7f4c00025d600f9e51113f3b12ca8ed
{ProductNameWithCompany}SLG Broadcast Suite
{ProductNameWithVersion}SLG Broadcast Suite 2024.3

Date and Time

The {CurrentDate} and {CurrentTime} placeholder can be formatted with a format string.
The date and time format uses the DefaultCulture configured in the appsettings.json
Keep in mind that the forbidden characters cannot be used in a format either.

Syntax:
{CurrentDate(Format)}

Examples

The format works the same for both placeholders.

PlaceholderResult
{CurrentDate(d)}15.06.2024
{CurrentDate(D)}Samstag, 15. Juni 2024
{CurrentDate(f)}Samstag, 15. Juni 2024 21:15
{CurrentDate(F)}Samstag, 15. Juni 2024 21:15:07
{CurrentDate(g)}15.06.2024 21:15
{CurrentDate(G)}15.06.2024 21:15:07
{CurrentDate(m)}15. Juni
{CurrentDate(R)}Sat, 15 Jun 2024 21:15:07 GMT
{CurrentDate(s)}2024-06-15T21:15:07
{CurrentDate(t)}21:15
{CurrentDate(T)}21:15:07
{CurrentDate(u)}2024-06-15 21:15:07Z
{CurrentDate(U)}Samstag, 15. Juni 2024 19:15:07
{CurrentDate(y)}Juni 2024
{CurrentDate(d M yyyy)}15 6 2024
{CurrentDate(d MM yyyy)}15 06 2024
{CurrentDate(d MMM yyyy)}15 Juni 2024
{CurrentDate(d MMMM yyyy)}15 Juni 2024
{CurrentDate(HH-mm-ss)}21-15-07
{CurrentDate(dd MMM HH-mm-ss)}15 Juni 21-15-07
{CurrentDate(\Mon\t\h\ M)}Month 6

Calculation

The calculation placeholder allows you to manipulate and calculate data with an expression.
For more information on how to use the calculation expression, please visit the NCalc GitHub page (we use NCalc to evaluate the expression).
Keep in mind that the forbidden characters cannot be used in an expression either.

Syntax:
{Calc(Expression)}

Examples

PlaceholderResult
{Calc(35+7)}42
{Calc(50-8)}42
{Calc(14*3)}42
{Calc(252/6)}42
{Calc(100 % 58)}42
{Calc(15 < 30)}True
{Calc(15 > 30)}False
{Calc(2+2*20)}42
{Calc((3+3)*7)}42
{Calc(168 >> 2)}42
{Calc(Abs(-42))}42
{Calc(Log10(42))}1.6232492903979006
{Calc(Sin(42))}-0.9165215479156338
{Calc(Cos(42))}-0.39998531498835127
{Calc(5*1.25+{CurrentValue})}
CurrentValue=35.75
42

Forbidden Characters

The following characters are not allowed inside a placeholder:

  • "
  • '
  • :
  • =
  • {
  • }