Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DateOnly / TimeOnly with scripts #3284

Closed
isaacabraham opened this issue Nov 23, 2022 · 2 comments
Closed

DateOnly / TimeOnly with scripts #3284

isaacabraham opened this issue Nov 23, 2022 · 2 comments

Comments

@isaacabraham
Copy link

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
@alfonsogarciacaro
Copy link
Member

Hi @isaacabraham. Can you please try with Fable 4 (dotnet tool install fable --prerelease)? I just tested and DateOnly works for me in scripts.

@MangelMaxime
Copy link
Member

MangelMaxime commented Nov 19, 2024

I tested and it is working for me with Fable 4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants