Skip to content
  • Home
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Visualisierung
  4. Datum (TT.MM.YY) in (kurzen) Wochentag umwandeln

NEWS

  • Monatsrückblick Januar/Februar 2026 ist online!
    BluefoxB
    Bluefox
    18
    1
    771

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    18
    1
    6.2k

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    1.5k

Datum (TT.MM.YY) in (kurzen) Wochentag umwandeln

Scheduled Pinned Locked Moved Visualisierung
5 Posts 4 Posters 540 Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • hollywootH Offline
    hollywootH Offline
    hollywoot
    wrote on last edited by
    #1

    Moin,

    ich hab jetzt schon eine Weile gesucht und irgendwie nichts finden können.
    Ich nutze den Feiertage-Adapter und würde mir gerne im VIS den entsprechenden Wochentag anzeigen lassen bzw. nur dann anzeigen lassen, wenn es ein "freier Feiertag" ist (kein Wochenende).

    Leider krieg ich es nicht gebacken, dass Datum von feiertage.0.naechster.Datum in einen Wochentag umzuwandeln.

    Kann wer helfen?

    Gruß

    liv-in-skyL haus-automatisierungH 2 Replies Last reply
    0
    • hollywootH hollywoot

      Moin,

      ich hab jetzt schon eine Weile gesucht und irgendwie nichts finden können.
      Ich nutze den Feiertage-Adapter und würde mir gerne im VIS den entsprechenden Wochentag anzeigen lassen bzw. nur dann anzeigen lassen, wenn es ein "freier Feiertag" ist (kein Wochenende).

      Leider krieg ich es nicht gebacken, dass Datum von feiertage.0.naechster.Datum in einen Wochentag umzuwandeln.

      Kann wer helfen?

      Gruß

      liv-in-skyL Offline
      liv-in-skyL Offline
      liv-in-sky
      wrote on last edited by
      #2

      @hollywoot

      z.b.

      Image 043.png

      <xml xmlns="https://developers.google.com/blockly/xml">
       <variables>
         <variable id="GpO@GGfL#bemhI0d^!]d">myDate</variable>
       </variables>
       <block type="variables_set" id="39PkC).J6`Z*u6MO{.M@" x="-12" y="288">
         <field name="VAR" id="GpO@GGfL#bemhI0d^!]d">myDate</field>
         <value name="VALUE">
           <block type="lists_split" id="syF^umB{Y!%T6wQ^b#$K">
             <mutation mode="SPLIT"></mutation>
             <field name="MODE">SPLIT</field>
             <value name="INPUT">
               <block type="get_value" id="s)cfxbUIbQiT8,KyBP|g">
                 <field name="ATTR">val</field>
                 <field name="OID">feiertage.0.naechster.Datum</field>
               </block>
             </value>
             <value name="DELIM">
               <shadow type="text" id="IZAurv-_DI.{F_v:$+#G">
                 <field name="TEXT">.</field>
               </shadow>
             </value>
           </block>
         </value>
         <next>
           <block type="debug" id="u|IQ1U}H-GvkaN[+8,+(">
             <field name="Severity">log</field>
             <value name="TEXT">
               <shadow type="text" id="@4i.^jn`C}5Zn%Iv:=bN">
                 <field name="TEXT">test</field>
               </shadow>
               <block type="convert_from_date" id="=^?~_S-gKz!8nb5:l68Y">
                 <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="true"></mutation>
                 <field name="OPTION">wdt</field>
                 <field name="LANGUAGE">de</field>
                 <value name="VALUE">
                   <block type="text_join" id="bc8s?|{,*.AKpq=X3c01">
                     <mutation items="5"></mutation>
                     <value name="ADD0">
                       <block type="lists_getIndex" id="$MhH:J_[^}Pp~;vDf6Yk">
                         <mutation statement="false" at="true"></mutation>
                         <field name="MODE">GET</field>
                         <field name="WHERE">FROM_START</field>
                         <value name="VALUE">
                           <block type="variables_get" id="_gbIBcMtWl-]i4Uip8kM">
                             <field name="VAR" id="GpO@GGfL#bemhI0d^!]d">myDate</field>
                           </block>
                         </value>
                         <value name="AT">
                           <block type="math_number" id=",sCbBip2plZg,Y~H$RWc">
                             <field name="NUM">3</field>
                           </block>
                         </value>
                       </block>
                     </value>
                     <value name="ADD1">
                       <block type="text" id="D!DFI~Hv9:j{eVB[3GTt">
                         <field name="TEXT">-</field>
                       </block>
                     </value>
                     <value name="ADD2">
                       <block type="lists_getIndex" id="y.x2dZCi$-|;(e8M?0pJ">
                         <mutation statement="false" at="true"></mutation>
                         <field name="MODE">GET</field>
                         <field name="WHERE">FROM_START</field>
                         <value name="VALUE">
                           <block type="variables_get" id="]B6QxjZp2mkK6rq|:j+-">
                             <field name="VAR" id="GpO@GGfL#bemhI0d^!]d">myDate</field>
                           </block>
                         </value>
                         <value name="AT">
                           <block type="math_number" id="J2NY~|rp9Ac,Eu~,b88o">
                             <field name="NUM">2</field>
                           </block>
                         </value>
                       </block>
                     </value>
                     <value name="ADD3">
                       <block type="text" id="zm|ur,_?jUMO`N.%gyu@">
                         <field name="TEXT">-</field>
                       </block>
                     </value>
                     <value name="ADD4">
                       <block type="lists_getIndex" id="K;@Hm]F0*tH29aSKuHu{">
                         <mutation statement="false" at="true"></mutation>
                         <field name="MODE">GET</field>
                         <field name="WHERE">FROM_START</field>
                         <value name="VALUE">
                           <block type="variables_get" id="[,9ihy@!:v73#9W?JT;A">
                             <field name="VAR" id="GpO@GGfL#bemhI0d^!]d">myDate</field>
                           </block>
                         </value>
                         <value name="AT">
                           <block type="math_number" id="1=mM4e=xh}Q3|Uo[vh/V">
                             <field name="NUM">1</field>
                           </block>
                         </value>
                       </block>
                     </value>
                   </block>
                 </value>
               </block>
             </value>
           </block>
         </next>
       </block>
      </xml>
      

      nach einem gelösten Thread wäre es sinnvoll dies in der Überschrift des ersten Posts einzutragen [gelöst]-... Bitte benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat. Forum-Tools: PicPick https://picpick.app/en/download/ und ScreenToGif https://www.screentogif.com/downloads.html

      hollywootH 1 Reply Last reply
      1
      • liv-in-skyL liv-in-sky

        @hollywoot

        z.b.

        Image 043.png

        <xml xmlns="https://developers.google.com/blockly/xml">
         <variables>
           <variable id="GpO@GGfL#bemhI0d^!]d">myDate</variable>
         </variables>
         <block type="variables_set" id="39PkC).J6`Z*u6MO{.M@" x="-12" y="288">
           <field name="VAR" id="GpO@GGfL#bemhI0d^!]d">myDate</field>
           <value name="VALUE">
             <block type="lists_split" id="syF^umB{Y!%T6wQ^b#$K">
               <mutation mode="SPLIT"></mutation>
               <field name="MODE">SPLIT</field>
               <value name="INPUT">
                 <block type="get_value" id="s)cfxbUIbQiT8,KyBP|g">
                   <field name="ATTR">val</field>
                   <field name="OID">feiertage.0.naechster.Datum</field>
                 </block>
               </value>
               <value name="DELIM">
                 <shadow type="text" id="IZAurv-_DI.{F_v:$+#G">
                   <field name="TEXT">.</field>
                 </shadow>
               </value>
             </block>
           </value>
           <next>
             <block type="debug" id="u|IQ1U}H-GvkaN[+8,+(">
               <field name="Severity">log</field>
               <value name="TEXT">
                 <shadow type="text" id="@4i.^jn`C}5Zn%Iv:=bN">
                   <field name="TEXT">test</field>
                 </shadow>
                 <block type="convert_from_date" id="=^?~_S-gKz!8nb5:l68Y">
                   <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="true"></mutation>
                   <field name="OPTION">wdt</field>
                   <field name="LANGUAGE">de</field>
                   <value name="VALUE">
                     <block type="text_join" id="bc8s?|{,*.AKpq=X3c01">
                       <mutation items="5"></mutation>
                       <value name="ADD0">
                         <block type="lists_getIndex" id="$MhH:J_[^}Pp~;vDf6Yk">
                           <mutation statement="false" at="true"></mutation>
                           <field name="MODE">GET</field>
                           <field name="WHERE">FROM_START</field>
                           <value name="VALUE">
                             <block type="variables_get" id="_gbIBcMtWl-]i4Uip8kM">
                               <field name="VAR" id="GpO@GGfL#bemhI0d^!]d">myDate</field>
                             </block>
                           </value>
                           <value name="AT">
                             <block type="math_number" id=",sCbBip2plZg,Y~H$RWc">
                               <field name="NUM">3</field>
                             </block>
                           </value>
                         </block>
                       </value>
                       <value name="ADD1">
                         <block type="text" id="D!DFI~Hv9:j{eVB[3GTt">
                           <field name="TEXT">-</field>
                         </block>
                       </value>
                       <value name="ADD2">
                         <block type="lists_getIndex" id="y.x2dZCi$-|;(e8M?0pJ">
                           <mutation statement="false" at="true"></mutation>
                           <field name="MODE">GET</field>
                           <field name="WHERE">FROM_START</field>
                           <value name="VALUE">
                             <block type="variables_get" id="]B6QxjZp2mkK6rq|:j+-">
                               <field name="VAR" id="GpO@GGfL#bemhI0d^!]d">myDate</field>
                             </block>
                           </value>
                           <value name="AT">
                             <block type="math_number" id="J2NY~|rp9Ac,Eu~,b88o">
                               <field name="NUM">2</field>
                             </block>
                           </value>
                         </block>
                       </value>
                       <value name="ADD3">
                         <block type="text" id="zm|ur,_?jUMO`N.%gyu@">
                           <field name="TEXT">-</field>
                         </block>
                       </value>
                       <value name="ADD4">
                         <block type="lists_getIndex" id="K;@Hm]F0*tH29aSKuHu{">
                           <mutation statement="false" at="true"></mutation>
                           <field name="MODE">GET</field>
                           <field name="WHERE">FROM_START</field>
                           <value name="VALUE">
                             <block type="variables_get" id="[,9ihy@!:v73#9W?JT;A">
                               <field name="VAR" id="GpO@GGfL#bemhI0d^!]d">myDate</field>
                             </block>
                           </value>
                           <value name="AT">
                             <block type="math_number" id="1=mM4e=xh}Q3|Uo[vh/V">
                               <field name="NUM">1</field>
                             </block>
                           </value>
                         </block>
                       </value>
                     </block>
                   </value>
                 </block>
               </value>
             </block>
           </next>
         </block>
        </xml>
        

        hollywootH Offline
        hollywootH Offline
        hollywoot
        wrote on last edited by
        #3

        @liv-in-sky
        Gott, da wäre ich im Leben nicht drauf gekommen.
        Er möchte also gerne das Minus als Trennzeichen, ja? :)

        Ich danke Dir!

        paul53P 1 Reply Last reply
        0
        • hollywootH hollywoot

          Moin,

          ich hab jetzt schon eine Weile gesucht und irgendwie nichts finden können.
          Ich nutze den Feiertage-Adapter und würde mir gerne im VIS den entsprechenden Wochentag anzeigen lassen bzw. nur dann anzeigen lassen, wenn es ein "freier Feiertag" ist (kein Wochenende).

          Leider krieg ich es nicht gebacken, dass Datum von feiertage.0.naechster.Datum in einen Wochentag umzuwandeln.

          Kann wer helfen?

          Gruß

          haus-automatisierungH Offline
          haus-automatisierungH Offline
          haus-automatisierung
          Developer Most Active
          wrote on last edited by haus-automatisierung
          #4

          @hollywoot z.B. mit einem Alias in alias.0. Als Lese-Funktion dann

          new Intl.DateTimeFormat('de-DE', { weekday: 'long' }).format(new Date(val))
          // Dienstag
          

          oder

          new Intl.DateTimeFormat('de-DE', { weekday: 'short' }).format(new Date(val))
          // Di
          

          Edit: Funktioniert beim Feiertage-Adapter leider nicht, da das Datum als String im Deutschen Format gespeichert wird...

          🧑‍🎓 Autor des beliebten ioBroker-Master-Kurses
          🎥 Tutorials rund um das Thema DIY-Smart-Home: https://haus-automatisierung.com/
          📚 Meine inoffizielle ioBroker Dokumentation

          1 Reply Last reply
          0
          • hollywootH hollywoot

            @liv-in-sky
            Gott, da wäre ich im Leben nicht drauf gekommen.
            Er möchte also gerne das Minus als Trennzeichen, ja? :)

            Ich danke Dir!

            paul53P Offline
            paul53P Offline
            paul53
            wrote on last edited by paul53
            #5

            @hollywoot sagte: Minus als Trennzeichen, ja?

            Die Reihenfolge "TT.MM.JJJJ" wird falsch interpretiert. Man muss sie umkehren "JJJJ-MM-TT". Es ginge z.B. auch "MM/TT/JJJJ" oder "MM.TT.JJJJ" und sogar "MM/TT/JJ".

            Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
            Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

            1 Reply Last reply
            0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            Support us

            ioBroker
            Community Adapters
            Donate

            303

            Online

            32.8k

            Users

            82.7k

            Topics

            1.3m

            Posts
            Community
            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
            ioBroker Community 2014-2025
            logo
            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Home
            • Recent
            • Tags
            • Unread 0
            • Categories
            • Unreplied
            • Popular
            • GitHub
            • Docu
            • Hilfe