Skip to content

Respect [DisplayFormat] when filling in HTML controls #116

Open
@robdmoore

Description

@robdmoore

e.g. if I have:

    [DisplayFormat(DataFormatString = "{0:d/M/yyyy}", ApplyFormatInEditMode = true)]
    public DateTime DateOfBirth { get; set; }

I should be able to use Input.ReplaceInputValueWith(m => m.DateOfBirth, new DateTime(2000, 1, 1)) and it should put 1/1/2000 in the textbox. Same deal with Input.Model with a view model containing a property like the above.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions