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

How to create a date without year? #5

Closed
xjlin0 opened this issue May 17, 2020 · 1 comment
Closed

How to create a date without year? #5

xjlin0 opened this issue May 17, 2020 · 1 comment

Comments

@xjlin0
Copy link

xjlin0 commented May 17, 2020

Hi, it's great library! One question, if only month and day are available, could django_partial_date store only month and day without year? something like:

dob=PartialDate(datetime.date(0, 9, 21), precision=PartialDate.DAY)

Thanks!

@ktowen
Copy link
Owner

ktowen commented May 17, 2020

Hi @xjlin0, thanks for your comment. Currently this is not possible and I don't think it would be as it's outside the scope of this extension. Greetings

@ktowen ktowen closed this as completed May 17, 2020
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

2 participants