class_docstr: Slider-based date selection widget. 
docstr: Convenience property to retrieve the value as a date object.
  
  Added in version 2.0
docstr_tok: ["Convenience","property","to","retrieve","the","value","as","a","date","object",".","Added","in","version","2.0"]
code: def value_as_date(self) -> date | None:
      """Convenience property to retrieve the value as a date object.
  
      Added in version 2.0
      """
      if self.value is None:
          return None
  
      if isinstance(self.value, numbers.Number):
          dt = datetime.fromtimestamp(
              self.value / 1000, tz=timezone.utc
          )
          return date(*dt.timetuple()[:3])
  
      return self.value
  
imports: from __future__ import annotations
  import logging
  import numbers
  from datetime import date, datetime, timezone
  from ...core.has_props import abstract
  from ...core.properties import Bool, Color, Datetime, Either, Enum, Float, Instance, Int, Nullable, Override, Readonly, Required, Seq, String, Tuple
  from ...core.property.descriptors import UnsetValueError
  from ...core.property.singletons import Undefined
  from ...core.validation import error
  from ...core.validation.errors import EQUAL_SLIDER_START_END
  from ..formatters import TickFormatter
  from .widget import Widget
label_desc: Use image node_id 3 for calling the DateSlider obj's underlying member method code with example usage: obj.value_as_date() and returns: self, None, date