Skip to content

Liquid Date Filter returning error Β #173

@nathanaskinner

Description

@nathanaskinner

The Liquid date filter is returning an error of

ScriptRuntimeException: (100,23) : error : Invalid number of parameters 2 for date object/function.

Example:

{{ "March 14, 2016" | date: "%b %d, %y" }} should print Mar 14, 16, however - it is throwing an error in my project.

{{ "March 14, 2016" }} prints normally as expected.

Is this an error on my end, or does Scriban have a different method of converting dates in Liquid templates?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions