Skip to content

Custom parsing #8

@picasso566

Description

@picasso566

Thanks for the great library.

I am trying to import a fixed width flat file (from COBOL no less) and I need to format some of the fields manually. For instance, the dates are YYYYMMDD. The decimal numeric fields have no placeholders and have a trailing negative like this: 5546 = 55.46, 123450- = (-)1234.50. So I need to manually parse certain fields. The app is in core 2 and I cannot for the life of me figure out how to get a custom formatter working with your code.

.WithMember(o => o.na_dist_dat, set => set.WithLength(8) ) -> "YYYYMMDD" to a datetime

Should I use .WithFormat and implement my own iFormat Provider?

Thanks

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