Skip to content

Changing Date Display Format when Viewing Node #15

@mkinnan

Description

@mkinnan

You can hard code the change ... in the date.js function date_field_formatter_view, change this line

markup: '<div class="value">' + label + date(format, d.getTime()) + '</div>'

to something like

markup: '<div class="value">' + label + date('D, j F Y - g:i a', d.getTime()) + '</div>'

It at least gets the job done, although I don't like hard coding like this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions