Skip to content

How to display DateTime ticks for negative OA date values? #806

@at2software

Description

@at2software

There has been quite some discussion regarding DateTime axis rendering and also about OLE Automation date. I hope I haven't missed something, if so please feel free to close this.

How can dates before 30 Dec. 1899 (i.e. negative DateTime.ToOADate() values) be displayed? A WpfPlot control using v4.1.8-beta, with only this single line on of code
plot.Plot.XAxis.DateTimeFormat(true);
results in this:
2021-02-18_15_22_10_24v1 mp4

Consequently, plottables containing negative x values render without ticks and labels when DateTimeFormat is set to true, but maybe I'm missing something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions