Date Field

    0

    2

    Django Public Recipes

    The code uses the models.DateField class to create a field that stores dates in the current time format (yyyy-mm-dd) or with the addition of a time stamp (yyyy-mm-dd HH:mm).

    Library: django

    Shortcut: django.field.date

    fieldName = models.DateField(auto_now=False, auto_now_add=False)
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    Legal
    • Security
    • Privacy Policy
    • Code Privacy
    • Terms of Service
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.