Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook

Announcement

Collapse

The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic


Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.


If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.


Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.



Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

Where is "dd.MM.yyyy" date format between 28 different formats?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Where is "dd.MM.yyyy" date format between 28 different formats?

    On a form I have a field with datetime data type. How can format this field so I can see data inside in the form: "dd.MM.yyyy hh:mm:ss" or without seconds? On "Format" tab in "Format style" combobox I see 28 (it's not a typo!) different date formats and 6 datetime formats, but there between them is not everyday European format. Is this a bad joke or an intentional bug?

    How can I format my date or datetime fields in "dd.MM.yyyy" or "dd.MM.yyyy hh:mm:ss" format (day. month, year separated with decimal point)?

    Fisher

    #2
    Re: Where is "dd.MM.yyyy" date format between 28 different formats?

    Set your Windows country and date format.
    Whatever date format shows in Windows, Excel etc will show in A5 fields - also currency

    Comment


      #3
      Re: Where is "dd.MM.yyyy" date format between 28 different formats?

      I already had set my local settings in Regional settings that way. And this work in all programs except in Alpha5.

      Comment


        #4
        Re: Where is "dd.MM.yyyy" date format between 28 different formats?

        Works for me. Selecting Slovenian results in dd.MM.yyyy format being displayed.

        ? date()
        = {22.09.2011}

        ? dtoc(date())
        = "22.09.2011"

        ? ctod("22.09.2011")
        = {22.09.2011}
        There can be only one.

        Comment


          #5
          Re: Where is "dd.MM.yyyy" date format between 28 different formats?

          Yes I agree with you. I tried that in interactive window and I get the same results. But I said I have a form which contain datetime or date fields and there is a problem. I can input date in the form field in format "dd.MM.yyyy" but when I leave field format change back to default.

          For example if I type: "25.4.2010 15:30" and then leave field I get: "25/04/2010 03:30:00 00 pm". This I see if I have Format Style set to "None". If I choose amongst any other 28 fancy formats I will see it in format I chose. And I of course need to see in my home format: "dd.MM.yyyy hh:ss" which doesn't exist.

          Can you format on your PC a field that will show in my format? I have such fields on every form. And I suppose that in codeless Alpha5 you pick the date format not make a program to show it.

          In Ms Access such things worked since version 1.0 almost 20 years back. You just simply type your format if built in is not appropriate (but they are already, because when you change windows regional settings they change too).
          And on Alpha5 website I can read how user friendly A5 vs Access is. Well it doesn't convince me. The more I'm digging in, the more problems I found I never had in Ms Access.

          Comment


            #6
            Re: Where is "dd.MM.yyyy" date format between 28 different formats?

            If you create a new form based on one of the dbfs you have a date problem with, just for test.
            Put a date field from your data on it, and a date field variable.
            You may find that they both operate differently - if so then there is a field rule on the data to look for.
            If not then there may be something on your original form causing the reversal of DD/MM.

            Its not A5. If it works as you say in Code Editor then A5 won't anywhere decide without Ui (user intervention) to change that.
            We use European format and I've never had an issue with neither display or entry or calculations using date once I had set the Country in WINdows.

            Comment


              #7
              Re: Where is "dd.MM.yyyy" date format between 28 different formats?

              Ray, I think it's more of an issue with a time field displaying the fully qualified date-time value.
              There can be only one.

              Comment


                #8
                Re: Where is "dd.MM.yyyy" date format between 28 different formats?

                Fisher.
                There is a world of difference between Access and Alpha. You need to unlearn the Access way I'm afraid.
                Typically I've found that people who are good at Access have a need to do things the hard way. There are so many built in facilities in Alpha that you may feel that you are "cheating" as it's so much easier to use.
                Your problem.
                In the Form, when you select the Data Object Properties - not the Field name AND data object - do you not have the view attached under the Format tab?
                Attached Files
                See our Hybrid Option here;
                https://hybridapps.example-software.com/


                Apologies to anyone I haven't managed to upset yet.
                You are held in a queue and I will get to you soon.

                Comment


                  #9
                  Re: Where is "dd.MM.yyyy" date format between 28 different formats?

                  Originally posted by Stan Mathews View Post
                  Ray, I think it's more of an issue with a time field displaying the fully qualified date-time value.
                  Yes Stan, I think that will be something on that. By the way I'm using Ms SQL backend connected over Active Link Table. And I think that is not treated as view. Now I created simple dbf table with two different fields. One is of Date type (for dates only) and one is of Time type (for Date and time or timestamp).

                  When I insert value in date field all came out Ok, like you all said, even without setting format style (but there is no such style anyway) so setting has to be taken from windows regional settings.
                  But when I type date and time in datetime field I get what I said. I'm attaching snapshot of form, what I type in and what show up when I leave field.

                  TestingDates.png

                  Do you get the same?

                  Comment


                    #10
                    Re: Where is "dd.MM.yyyy" date format between 28 different formats?

                    I do. (I'm trying to find something I thought I remembered about user defined formats.)
                    There can be only one.

                    Comment


                      #11
                      Re: Where is "dd.MM.yyyy" date format between 28 different formats?

                      STRITRAN_MULTI(DTOC(DATE),"/",".")+"."+TIME
                      This works if you have
                      a) Date field
                      b) Short Time field
                      c) Calculated DateTime field.
                      OK it's an extra field, but it will get you where you want to be I think.

                      = 22.09.2011.12:25:00 0

                      I hate coding so if I can get this far you will be able to do a whole lot better.
                      See our Hybrid Option here;
                      https://hybridapps.example-software.com/


                      Apologies to anyone I haven't managed to upset yet.
                      You are held in a queue and I will get to you soon.

                      Comment


                        #12
                        Re: Where is "dd.MM.yyyy" date format between 28 different formats?

                        I need datetime field where I can enter data manually in format dd.MM.yyyy hh:mm or that will be inserted automatically over now() function or just displayed.
                        Is there any option to add my custom datetime formats into combobox for Format style? That could solve the problem. Because I can type data in, only that is displayed/interpreted in not correct format. User will think if will saw "/" that is format MM/dd/yyyy but actually is dd/MM/yyyy.

                        Comment


                          #13
                          Re: Where is "dd.MM.yyyy" date format between 28 different formats?

                          Code:
                          ?time("d.m.yyyy 0h:0m am",now())
                          = "22.5.2011 04:05 pm"

                          Comment


                            #14
                            Re: Where is "dd.MM.yyyy" date format between 28 different formats?

                            I think I should put that under OnDepart or OnChange event for field with datetime value. How I have to write that code?

                            Comment


                              #15
                              Re: Where is "dd.MM.yyyy" date format between 28 different formats?

                              Originally posted by Stan Mathews View Post
                              I do. (I'm trying to find something I thought I remembered about user defined formats.)
                              Probably this page. Almost half way down. Look for the User Defined Formatting heading
                              Tim Kiebert
                              Eagle Creek Citrus
                              A complex system that does not work is invariably found to have evolved from a simpler system that worked just fine.

                              Comment

                              Working...
                              X