Skip to content

DateOnly / TimeOnly with scripts #3284

@isaacabraham

Description

@isaacabraham

Description

DateOnly doesn't appear to work in scripts.

Repro code

open System

type Order =
    {
        OrderDate : DateOnly
    }

Expected and actual results

Should compile, but leads to the following error:

error FSHARP: The type 'DateOnly' is not defined. (code 39)

Related information

  • Fable version: dotnet fable --version: 3.7.20
  • Operating system: Windows 11
  • .NET Version: 6.0.403

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