.. wxPython Phoenix documentation
This file was generated by Phoenix's sphinx generator and associated
tools, do not edit by hand.
Copyright: (c) 2011-2020 by Total Control Software
License: wxWindows License
.. include:: headings.inc
.. _wx.grid.GridCellDateRenderer:
==========================================================================================================================================
|phoenix_title| **wx.grid.GridCellDateRenderer**
==========================================================================================================================================
This class may be used to show a date, without time, in a cell.
See :ref:`wx.grid.GridCellDateTimeRenderer` for a date/time version. :meth:`wx.DateTime.Format` is used internally to render the date representation. :meth:`wx.DateTime.ParseDate` is used to parse the string data entered in the cell.
.. versionadded:: 4.1/wxWidgets-3.1.3
.. seealso:: :ref:`wx.grid.GridCellRenderer`, :ref:`wx.grid.GridCellAutoWrapStringRenderer`, :ref:`wx.grid.GridCellBoolRenderer`, :ref:`wx.grid.GridCellEnumRenderer`, :ref:`wx.grid.GridCellFloatRenderer`, :ref:`wx.grid.GridCellNumberRenderer`, :ref:`wx.grid.GridCellStringRenderer`, :ref:`wx.grid.GridCellDateTimeRenderer`
|
|class_hierarchy| Class Hierarchy
=================================
.. raw:: html

Inheritance diagram for class
GridCellDateRenderer:
|
|sub_classes| Known Subclasses
==============================
:ref:`wx.grid.GridCellDateTimeRenderer`
|
|method_summary| Methods Summary
================================
================================================================================ ================================================================================
:meth:`~wx.grid.GridCellDateRenderer.__init__` Date renderer constructor.
:meth:`~wx.grid.GridCellDateRenderer.SetParameters` Sets the strftime()-like format string which will be used to render the date.
================================================================================ ================================================================================
|
|api| Class API
===============
.. class:: wx.grid.GridCellDateRenderer(GridCellStringRenderer)
**Possible constructors**::
GridCellDateRenderer(outformat: str="") -> None
This class may be used to show a date, without time, in a cell.
.. method:: __init__(self, outformat: str="")
Date renderer constructor.
:param `outformat`: strftime()-like format string used to render the output date. By default (or if provided format string is empty) localized date representation ("%x") is used.
:type `outformat`: string
:rtype: `None`
.. method:: SetParameters(self, params : str)
Sets the strftime()-like format string which will be used to render the date.
:param `params`: strftime()-like format string used to render the date.
:type `params`: string
:rtype: `None`