Skip to content

date field, disable being cast to Date automatically #15685

@skiv71

Description

@skiv71

Prerequisites

  • I have written a descriptive issue title

Mongoose version

8.x

Node.js version

24.x

MongoDB version

8.x

Operating system

None

Operating system version (i.e. 20.04, 11.3, 10)

No response

Issue

I want to have the date field in my schema, but only as dd/mm/yyyy. A date object or it's derived string won't cut it.

How can i disable please?

Metadata

Metadata

Assignees

No one assigned

    Labels

    helpThis issue can likely be resolved in GitHub issues. No bug fixes, features, or docs necessaryhelp wanted

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions