Custom Energy dashboard and floating date/time selection field

I have the same Problem. You can put the Datepicker in the Header Bar using a custom card:

see here:

header_cards:
  justify_content: null
  cards:
    - type: energy-date-selection
      card_mod:
        style: |
          ha-card {
            color: white;
            --ha-card-background: "rgba(30, 30, 30, 0.0)";
            --ha-card-border-width: 0px;
            --ha-card-border-radius: 1px
          }

But I would much prefer it to be floating, like the new one.

Might be related: