fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    datetime

    Questions & Answers
    3
    14
    774
    Loading More Posts
    • 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.
    • D
      Dr.Amiin last edited by Dr.Amiin

      Hello how to use only hours and minutes of "datetime" input i marked them with red line

      (any solution except using "int" and "string")

      f56b80a2-f2b6-4493-bdc0-35c8b690d51e-image.png

      D 6 Replies Last reply Reply Quote 0
      • D
        Duelistking last edited by

        try use Component format

        1 Reply Last reply Reply Quote 0
        • D
          Dr.Amiin @Dr.Amiin last edited by

          @amiinkiaei how can you show it

          1 Reply Last reply Reply Quote 0
          • D
            Duelistking last edited by

            2024_09_13_21.34.03.jpg

            1 Reply Last reply Reply Quote 0
            • D
              Dr.Amiin @Dr.Amiin last edited by

              @amiinkiaei it using "string" 0d88bb18-bf5f-470f-97b4-24734a8f8908-image.png

              D 1 Reply Last reply Reply Quote 0
              • D
                Dr.Amiin @Dr.Amiin last edited by

                @amiinkiaei i want to use "datetime" input because user can't change it to weird text "when using string" or weird number "when using int".
                when input type is "datetime" they can only change the time.

                1 Reply Last reply Reply Quote 0
                • D
                  Duelistking last edited by

                  just made enum bro

                  1 Reply Last reply Reply Quote 0
                  • D
                    Dr.Amiin @Dr.Amiin last edited by

                    @amiinkiaei show me your idea with pic

                    1 Reply Last reply Reply Quote 0
                    • D
                      Duelistking last edited by

                      datetime currentTime = TimeCurrent(); // Mendapatkan waktu saat ini
                      int hour = TimeHour(currentTime);
                      int minute = TimeMinute(currentTime);
                      string ampm = "AM";

                      // Konversi format 24 jam ke 12 jam
                      if(hour == 0) {
                      hour = 12; // 12:00 AM
                      } else if(hour == 12) {
                      ampm = "PM"; // 12:00 PM
                      } else if(hour > 12) {
                      hour -= 12;
                      ampm = "PM"; // Setelah 12 siang
                      }

                      string timeStr = StringFormat("%02d:%02d %s", hour, minute, ampm);
                      Print("Waktu saat ini (format 12 jam): ", timeStr);

                      1 Reply Last reply Reply Quote 0
                      • D
                        Dr.Amiin @Dr.Amiin last edited by

                        @amiinkiaei how should i do it in fxdreema or in mql

                        D 1 Reply Last reply Reply Quote 0
                        • D
                          Dr.Amiin @Dr.Amiin last edited by

                          @amiinkiaei how should i do it in fxdreema or in mql ??

                          1 Reply Last reply Reply Quote 0
                          • l'andorrà
                            l'andorrà last edited by

                            Just copy the suggested code into a grey 'custom mql code' block.

                            (English) I will try to help everyone in these fxDreema forums. But if you want to learn how to use the platform in depth or more quickly, I can help you with my introductory fxDreema course in English at https://www.theandorraninvestor.eu.

                            (Català) Miraré d’ajudar tothom en aquests fòrums d’fxDreema. Tanmateix, si vols aprendre a fer servir la plataforma amb més profunditat o més de pressa, t’hi puc ajudar amb el meu curs d’introducció a fxDeema en català a https://www.theandorraninvestor.eu/ca.

                            (Español) Intentaré ayudar a todo el mundo en estos foros de fxDreema. Sin embargo, si quieres aprender a usar la plataforma en profundidad o más deprisa, te puedo ayudar con mi curso de introducción a fxDreema en español en https://www.theandorraninvestor.eu/es.

                            1 Reply Last reply Reply Quote 1
                            • D
                              Dr.Amiin @Dr.Amiin last edited by

                              @amiinkiaei no any input for this ab6d1338-e481-4221-8185-f35b5308e99a-image.png

                              1 Reply Last reply Reply Quote 0
                              • D
                                Dr.Amiin @Dr.Amiin last edited by

                                @amiinkiaei ?

                                1 Reply Last reply Reply Quote 0
                                • 1 / 1
                                • First post
                                  Last post

                                Online Users

                                L
                                A
                                M
                                B
                                E
                                S
                                M

                                20
                                Online

                                146.6k
                                Users

                                22.4k
                                Topics

                                122.6k
                                Posts

                                Powered by NodeBB Forums | Contributors