I am needing to convert the String that gives the following line of code to date and time in a sensor
- platform: command_line
unique_id: ssl-homeassistant
name: Home Assistant SSL Expiration
command: '../ssl/openssl x509 -enddate -noout -in ../ssl/fullchain.pem | cut -c10-30'
scan_interval: 86400
The date format that this gives is “Jun 2 00:39:56 2023”