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

Formatting a character date field

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

    Formatting a character date field

    During an import process I have a filed called �date� that comes in as a character field �6 long�. It is formatted in yymmdd. Is there a function to look at a character field that has numbers like this date field and convert all dates to the �highest date� in that field. So if had 021225 and 021224 in one field can I convert all dates in that field to the highest date and formatted like this.. 02/12/25.
    One step further: I would like to convert the character date format of yymmdd to mm/dd/yy and convert all dates in that field to highest date.
    I hope that I explained this properly.

    #2
    RE: Formatting a character date field


    Frank,

    I think you're talking about several distinct steps, rather than a single function.

    If it were me, I'd approach it this way:

    1) import the data to a temporary table
    2) add a new char type field to the temp table, 8 wide
    3) use an update operation to convert YYMMDD to MM/DD/YYYY in the new char field (this will involve an expression using the substr() function 3 times)
    4) add a new date type field to the temp table
    5) use an update operation to convert the new char type field to a date type and store it in the new date type field. (this will involve the ctod() function)
    6) sort the temp table by date, descending
    7) use the value in the most recent date field as the source and update the other date field values to match
    8) finally, append the desired fields to new records in your primary table

    -- tom

    Comment


      #3
      RE: Formatting a character date field


      Frank, on re-reading my post I see an error. In step 2, the new char type field must be 10 wide, or there won't be room for the slashes. -- tom

      Comment


        #4
        RE: Formatting a character date field

        I now have a character field formatted xx/xx/xx
        (the / / ) are a mask. So the field is mmddyy. I split up the import field up 2-2-2(xx xx xx) adn imported them into 3 fields. Then used F1+F2+F3 to get the mmddyy.
        I have to dates in the character field. 050402 and 050502. I want to fill this field with the greater of the two.
        Tom: I'm being thick.....on the back half.

        Thanks
        Frank

        Comment


          #5
          RE: Formatting a character date field

          I was hoping to help with this but you've got me completely confused. How can you have a date field 6 long formatted yymmdd with 2 (or more?) dates in it? Are these dates in one field of one record or two fields of one record or one field in two different records?

          You also said you want to convert all dates to the highest date in that field. Convert all what dates? Presumably the other dates in that "field"?

          The best I can guess is that you have a character field like this:
          021225 021203 020930
          and you want to convert it to a character field that looks like this:
          12/25/02 12/25/02 12/25/02

          If you want to actually convert the character values to date values (not just to LOOK like date values but to actually BE date values) then a new field will be required for each resulting date value.

          Please clarify or provide an example.

          Comment

          Working...
          X