Masking a String with only last 2 digits displayed

Hi,
I will get a list of account numbers from the DB which I need to mask it with "$" except the last 2 characters. It will be numeric
and the size is 15 in DB. Like for example , i may get the account numbers which are of 10 character width as well as 15 character width but still i need to parse
the account number and display only the last 2 numbers in it with other numbers masked with "$".
Like $$$$$$$$$$$$$54 for 15 digit account number. The above needs to be done with in a loop as there a list of account numbers which
will be retreived from the DB. Which is the best possible way to do this?
Thanks,
CrazyJavaLover

jduprez wrote:
What a man Sabre150, a single line which solved the problem. I was thinking regex . Thanks you very much.Impressive. But I would implement Winston's suggestion to isolate that in a method with a meaningful name and proper Javadoc. No problem - I would do the same.
For me regexp-impaired, this one-line expression is as cryptic as Wookian.I often see statements like this. Would you advise Java programmers not to use Java templates because they can make code very difficult to follow for people who have not studied them? Would you advise programmers to use simple linear search rather than the Knuth-Morris-Pratt search algorithm because KMP functionality may not be obvious to the people who have to maintain the software? Would you advise programmer not to use the FFT algorithm but to use a simplistic DFT algorithm because the maintainers may not understand the FFT? I hope not.
That very short regular expression may not be part of regex101(though I think it could be) but if one understands the very basics of regex then one can get the essence. In regex, a single '.' stands for any character. The term '(?=..)' is a positive look ahead for any two characters so '.(?=..)' says look for any character that is followed by two more.
The replaceAll() says every time you find a character followed by two more then replace it with a '$'. Obviously only the last two characters are not followed by two more so they do not match. The '\ \' is needed because '$' is a meta-character when used in the replacement so it needs escaping with a '\' prefix but since '\' is a meta character in Java Strings literals the '\' needs escaping.

Similar Messages

  • AD user script to populate the IPPHONE attribute with the last 4 digits of the Telephonenumber attribute

    Good Afternoon Scripting Guys. I have a script that I have been working with pretty much all day today and just cant quite get it to play nice. Our objective is to search AD for specific users (say filtering them out with a username that starts with a "T")
    and User account is "Enabled" then grab the last four digits of their phone number (phone number is set up as follows: (800) 123 456 ) then populate the IPPHONE attribute with the last four digits of their phone number. I have read a ton of online
    blogs with users successfully making this happen but it appears that they are all using Quest (as the commands are all Get-qaduser and Set-qaduser). I need something that runs strictly in native Active Directory Module PowerShell on a Windows Server 2008r2
    Domain Controller.  I am also trying to keep it as simple as possible by using a Get command, then piping a Set command.  I have saved the script into a .ps1 file with the logic as follows:
    $SelUsers = Get-ADUser -filter {(SamAccountName -like "t*")} -Properties ipphone,telephonenumber -searchbase "OU=Test Users,OU=Temporary Org,OU=Test_Domain Users,DC=mydomain,DC=com" | where {($_.enabled -eq $True)}
    foreach ($user in $SelUsers)
     {$user.ipphone = $user.telephonenumber(4,$User.telephonenumber.length-4)
     set-aduser -instance $user}
    What is happening is kind of funny, but aggravating at the same time.  When we run the script, it completes with no errors.  When I pull up the properties of a user in the OU, the IP Phone field is populated with the number 8.  If the User
    account did not have a telephone number, the IP Phone field is populated with a -4.  So, apparently, the script is somehow subtracting the "-4" from the number of all of the Telephone Number field's characters.  Basically 12-4 is 8. 
    If there is no telephone number, then 0-4 is -4.  I have run the Get-ADUser portion of the script independently so I know its getting the correct users.  I also know it is populating the IPPHONE attribute but not with the last 4 digits of the telephone
    number.  Can you guys help out and maybe get this to work correctly?  Also, can you add logic to it to the script to delete any value in the IPPHONE field first, then replace it with the last 4 digits of the telephone.
    Any help would be GREATLY appreciated!!!!!  Thanks Guys...
    Lee

    First thing I would do is modify your filtering. This will remove the unneeded piping to the Where-Object cmdlet and also allow us to only return users who already have something in the telephoneNumber field. It is possible this could return all of your
    users, but if you have service accounts, etc. that do not have a telephoneNumber then they will not be included in your results. It's just a little cleaner.
    $SelUsers = Get-ADUser -filter {(SamAccountName -like 't*' -and Enabled -eq $True -and TelephoneNumber -like '*')}
    I suspect you may have a made a mistake when you entered what your phone numbers looks like. I assume that you forgot a final digit. If this is correct, and you have a space in the phone number between the three digits and the final four then you can use
    the split method to grab the last four digits.
    Foreach ($User in $SelUsers) {
    $Number = $User.telephoneNumber.split(' ')[-1]
    Set-ADUser -Identity $User -Replace @{ipPhone=$Number}
    There's no reason to delete what's in the field first because that's part of what the -Replace parameter will do anyway. This should help get you started!

  • [svn:fx-trunk] 13501: Bug: BLZ447 - AMF3 Deserialization: Wrongly counted reference ID of duplicated String when in the same message there are Strings with only wildcards

    Revision: 13501
    Revision: 13501
    Author:   [email protected]
    Date:     2010-01-14 06:01:23 -0800 (Thu, 14 Jan 2010)
    Log Message:
    Bug: BLZ447 - AMF3 Deserialization: Wrongly counted reference ID of duplicated String when in the same message there are Strings with only wildcards
    QA: Yes - please keep an eye on AMFX (HTTPChannel) tests.
    Doc: No
    Checkintests: Pass - except the usual 4-5 tests that time out on my machine.
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/amfx/AMFXDecoder.as

    Dear Pallavi,
    Very useful post!
    I am looking for similar accelerators for
    Software Inventory Accelerator
    Hardware Inventory Accelerator
    Interfaces Inventory
    Customization Assessment Accelerator
    Sizing Tool
    Which helps us to come up with the relevant Bill of Matetials for every area mentioned above, and the ones which I dont know...
    Request help on such accelerators... Any clues?
    Any reply, help is highly appreciated.
    Regards
    Manish Madhav

  • Symbian reading only last 6 digits problem! critic...

    I was told that the problem with symbian phones reading only the last 6 digits of the callers phone number has been around for some time now.
    Let me explain to all the people that do not know what i'm talking about:
    The problem is that the phone only reads the last 6 numbers of the callers phone nubmer and then searches your contacts for this number. Well that works "ok" untill you have a phone number like 041-XYZ-XYZ and 031-XYZ-XYZ stored in your phone book. Now there are 3 possible outcomes:
    1.) You have neither of the number stored in your phonebook = you will get the correct caller NUMBER displayed
    2.) You have one of the numbers in your phonebook = no mater which number calls you, the ID will allways be the number you have stored.
    3.)in the 3rd case where you have both numbers stored, you will get the right number that is calling you, but not the caller ID of that number that you have stored in your phonebook.
    So, my question is, IS NOKIA PLANNING TO RELEASE A FIX FOR THIS??? Because it's been here for too long! I had a nokia 6234 before my n78 now, and this problem was fixed there, have in mind that the 6234 is 2 years older!
    So how come that you cannot make a software update for symbian smart phones in at least 2 years? After all they are called SMART PHONES.
    Nokia help center from slovenia didn't have an answer wheter there is a fix on this problem beeing made....
    Please help, it's realy anoing, and talk about identity theft (it works the same with SMS's too) --> Whats the presidents and his secretary number again?!
    Message Edited by slayercek on 05-Jan-2009 06:16 PM
    Message Edited by slayercek on 05-Jan-2009 06:17 PM
    Message Edited by slayercek on 05-Jan-2009 06:19 PM
    Message Edited by slayercek on 05-Jan-2009 06:20 PM

    @ slay, if you want to tell something to Nokia use the 'contact us' button in the upper right hand side of this page. this is a user to user forum. Nokia will not hear you on these boards at least not in official capacity, nor will they respond to your plea...just keep that in mind.
    You know what I love about you the most, the fact that you are not me ! In love with technology and all that it can offer. Join me in discovery....

  • How to display only last 4 digits of tax number in Vendor Master view MK03

    Dear experts,
    In the Vendor Master view by Purchasing Organization (MK03), is there a way that will allow the user to view only the last four digits of the Vendor tax number?
    For example: Display only **-*-6789 (or blank spaces), instead of 123-45-6789 ?
    Any ideas and insights are much appreciated. Will award points for help.
    -TW

    In your report, just do a substr(ssn,5,4) for your new & improved SSN field to be displayed:
    SELECT First,
    Last,
    SUBSTR(ssn,5,4),
    Phone
    FROM Employees
    Thank you,
    Tony Miller
    Webster, TX

  • Lots of blank space when printing array with only last element printed

    I have a slight problem I have been trying to figure it out for days but can't see where my problem is, its probably staring me in the face but just can't seem to see it.
    I am trying to print out my 2 dimensional array outdie my try block. Inside the trying block I have two for loops in for the arrays. Within the second for loop I have a while to put token from Stringtokeniser into my 2 arrays. When I print my arrays in this while bit it prints fine however when I print outside the try block it only print the last element and lots of blank space before the element.
    Below is the code, hope you guys can see the problem. Thank you in advance
       import java.io.*;
       import java.net.*;
       import java.lang.*;
       import java.util.*;
       import javax.swing.*;
       public class javaflights4
          public static final String MESSAGE_SEPERATOR  = "#";
          public static final String MESSAGE_SEPERATOR1  = "*";
          public static void main(String[] args) throws IOException
             String data = null;
             File file;
             BufferedReader reader = null;
             file = new File("datafile.txt");
             String flights[] [];
                   //String flightdata[];
             flights = new String[21][7];
             int x = 0;
                   //flightdata = new String[7];
             int y = 0;
             try
                reader = new BufferedReader(new FileReader(file));   
                //data = reader.readLine();   
                while((data = reader.readLine())!= null)   
                   data.trim();
                   StringTokenizer tokenised = new StringTokenizer(data, MESSAGE_SEPERATOR1);
                   for(x = 0; x<=flights.length; x++)
                      for(y = 0; y<=flights.length; y++)
                         while(tokenised.hasMoreTokens())
                            //System.out.println(tokenised.nextToken());
                            flights [x] [y] = tokenised.nextToken();
                            //System.out.print("*"+ flights [x] [y]+"&");
                   System.out.println();
                catch(ArrayIndexOutOfBoundsException e1)
                   System.out.println("error at " + e1);
                catch(Exception e)
                finally
                   try
                      reader.close();
                      catch(Exception e)
             int i = 0;
             int j = 0;
             System.out.print(flights [j]);
    //System.out.println();

    A number of problems.
    First, I bet you see a lot of "error at" messages, don't you? You create a 21x7 array, then go through the first array up to 21, going through the second one all the way to 21 as well.
    your second for loop should go to flights[x].length, not flights.length. That will eliminate the need for ArrayIndexOutOfBounds checking, which should have been an indication that you were doing something wrong.
    Second, when you get to flights[0][0] (the very first iteration of the inner loop) you are taking every element from the StringTokenizer and setting flights[0][0] to each, thereby overwriting the previous one. There will be nothing in the StringTokenizer left for any of the other (21x7)-1=146 array elements. At the end of all the loops, the very first element in the array (flights[0][0]) should contain the last token in the file.
    At the end, you only print the first element (i=0, j=0, println(flight[ i][j])) which explains why you see the last element from the file.
    I'm assuming you have a file with 21 lines, each of which has 7 items on the line. Here is some pseudo-code to help you out:
    count the lines
    reset the file
    create a 2d array with the first dimension set to the number of lines.
    int i = 0;
    while (read a line) {
      Tokenize the line;
      count the tokens;
      create an array whose size is the number of tokens;
      stuff the tokens into the array;
      set flights[i++] to this array;
    }

  • Smart phones compare last 7 digits only, recognize...

    Hi,
    I have a problem with my N70 and I believe it exists with other smart phones models as I've read in other forum. Not exists in my old Nokia 6230i nor other than nokia models.
    The problem is that new nokia phones recognize two different numbers as duplicate if the last 7 digits are the same. In Saudi Arabia the mobile numbers are 10 digits. So If I have in my contacts two different persons and both their mobile number ending with same 7 digits and one of them called me, the name will not appear. Instead, the number will appear. Also, in the call list (dialed, received, missed) the name will not appear. It's common to find two persons with same last 7 digits number. And some maybe request that (father and son, mother and daughter, husband and wife).
    Nokia smart phones having this problem long time ago. And many update released for many phones models, but, still having the same problem.
    Regards
    Fawwaz

    @ slay, if you want to tell something to Nokia use the 'contact us' button in the upper right hand side of this page. this is a user to user forum. Nokia will not hear you on these boards at least not in official capacity, nor will they respond to your plea...just keep that in mind.
    You know what I love about you the most, the fact that you are not me ! In love with technology and all that it can offer. Join me in discovery....

  • Last four digits

    Hi
    I working  BW with HR Recently i got requirement such a way i want show only LAST 4 digits of the PERNR number Actually my PERNR has 9 characteristic in length but i want to display it into last 4 DIGITS characteristic in my report XXXXX-3456 How can we do in back end side 0r front end side which is more reliable ? can you let me know is there logic behind it ?
    Regards
    Ram

    Hi
    I'm trying to get solve but it not coming proper out
    I want to get last 4 digits number  but i'm getting that 9.999 so what i did is...
    Initially when i created formula i given description as 0emppernr when i tried to created new formula what i did is i drag that old formula and multiplied by 1000
    *'0emppernr' * 1000?* is it correct method ,but after executing of report i'm getting some different solution
    can you let me know how to multiple *FRAC ( 'DEP SSN OFFSET 4' / 10000 ) * 10000* by 1000 i'm tried my best i not getting proper solution  now i'm getting 9.999 if i multiple by 1000 the output should get  9999 ..
    Any one has idea how to reslove ?
    Regards
    Ram
    Edited by: RAM KUMAR KUTTI on Oct 15, 2009 8:28 PM

  • NACHA entry hash does not trim the last 10 digits but the first

    Our ach is ok until when entry hash total is over 11 digits the the entryhash becomes invalid as not trimming properly
    Example:
    Below is the batch_control calculation
    <POSITION>     <LENGTH>     <FORMAT>     <PAD>     <DATA>     <COMMENTS>
    <NEW RECORD>     BATCH_CONTROL
    11     10     Number     L, ‘0’     SUM(TO_NUMBER(SUBSTR
    (OutboundPayment/PayeeBankAccount/BranchNumber,1,8)))     Entry Hash
    If total entry is 10099336203
    This value should be trim with the last 10 digits 0099336203 - CORRECT
    But it is trimming from left 1009933620-WRONG
    Hiow can we fix this?

    Fixed

  • ThinInstaller with SCCM - Progress pauses at "Displaying License Notice"

    I have been using ThinInstaller successfully during my ConfigMgr task sequences for some time now, but after updating UpdateRetriever and ThinInstaller to the most recent versions, and adding some content to my repository, I have the following issue:
    The ThinInstaller process seems to hang at a specific step when run during my task sequences. The task sequence kicks off my ThinInstaller package, which installs the ThinInstaller files locally, and then runs a command to point to my driver repository. The specific command run is:
    "PathToThinInstaller\ThinInstaller.exe" /CM -search A -action INSTALL -repository "PathToRepository" -noicon -includerebootpackages 1,3,4 -showprogress -noreboot
    And it seems like the ThinInstaller application scans the local system and determines which updates are required. However, until I press "F8" (and only F8), there is no GUI displayed (even though I am using the -showprogress command line argument) and no driver packages are downloaded or installed. Looking at the log files on such a machine, I see the progress pause at a specific step. Quick note: It's just a coincidence in the logs below that I hit F8 about an hour after the progress paused:
    Info 2013-09-27 , 04:15:53
    at Tvsu.Coreq.CoreqProcessor.ProcessUpdatesImplementation(Update[] updates)
    Message: Ending Coreq process: Return21Updates
    Info 2013-09-27 , 04:15:53
    at Tvsu.Gui.GUIController.DisplayLicenseNotice(Boolean picklist)
    Message: Displaying License Notice.
    Info 2013-09-27 , 05:15:22
    at Tvsu.Gui.GUIController.StartInstallGUI()
    Message: Setting -ShowProgress Install Progress screen...
    Info 2013-09-27 , 05:15:22
    at Tvsu.Gui.GUIController.StartInstallGUI()
    Message: **About to Install 21 updates.
    Based on that snippet, progress paused around 4:15, with the last step being "Displaying License Notice". I let the machine go until about 5:15, then pressed F8 (to launch a debug command prompt window in the ConfigMgr task sequence) and immediately after pressing F8, the ThinInstaller UI appears and ThinInstaller progress resumes with the "Settings -ShowProgress Install Progress screen" log entry. When I press F8, there is no license prompt displayed or anything requiring user interaction - it just suddenly starts running again, and will eventually run to successful completion. I can confirm that the ThinInstaller.exe.configuration XML file on the workstations I'm building is still in the default configuration, with DISPLAYLICENSENOTICE = NO and IGNORELOCALLICENSE=YES.
    The curious thing is that I can run this exact package manually, using the exact same script that is called by the ConfigMgr task sequence, and it runs to completion, no issues, no license prompts, no need for user intervention, nothing. I did not make any changes to the command lines being used by my scripts - only changed the versions of UpdateRetriever and ThinInstaller. And technically, my task sequences still work, it's just very annoying to have to watch for this step in the process and press F8 to keep it from sitting and doing nothing.
    Has anyone else seen anything like this after an upgrade to new UpdateRetriever/ThinInstaller versions?

    Unfortunately, these page numbers do not correspond to anything in the v.4 TVSU deployment guide.  I've re-read all of the applicable areas in the guide, but still cannot get past one thing.  The guide does NOT seem to give a way to avoid ALL license messages.
    Due to the fact that TVSU does not load the registry parameters on first startup, I've resorted to a method given by several others on the internet that involves (using a script launched via SCCM) (script shown below) starting TVSU, using TASKKILL to kill the process, and then making registry changes to set parameters.  I then run a second step that launches TVSU again via command line which should do the 2nd launch of TVSU without having any popups.  HOWEVER, I still get one license popup.  It seems you do not get credit for the first launch when you kill the process without agreeing to the license.
    Here is the code:
    First step script:
    cmd /c "C:\program files (x86)\Lenovo\System Update\tvsu.exe"
    cmd /c TASKKILL /F /IM tvsukernel.exe
    REG ADD "HKLM\SOFTWARE\Lenovo\System Update\Preferences\UserSettings\General" /v ExtrasTab /t REG_SZ /d NO /f
    REG ADD "HKLM\SOFTWARE\Lenovo\System Update\Preferences\UserSettings\General" /v IgnoreLocalLicense /t REG_SZ /d YES /f
    REG ADD "HKLM\SOFTWARE\Lenovo\System Update\Preferences\UserSettings\General" /v DisplayLicenseNotice /t REG_SZ /d NO /f
    REG ADD "HKLM\SOFTWARE\Lenovo\System Update\Preferences\UserSettings\General" /v DisplayLicenseNoticeSU /t REG_SZ /d NO /f
    Second step command line:
    cmd.exe /c tvsu.exe /CM -search A -action INSTALL -repository \\server\share -includerebootpackages 1,3,4 -noreboot -noicon
     When I check the tvsu_log, I see that when the license dialog pops up, the log file reads, "Message: Display pick list license notice? YES"
    This is the license notice I need to get past.  Is there any way to suppress this license notice, given that I've already made the registry changes detailed above?

  • Chart digital display bug

    Hi,
    I am using chart with stacked plots and digital display for each of those stacked plots. There seems to be some update bug since if I move the display on the chart weird things start happening. The chart stops to update some plots and also artifacts appear. When I hide the digital display all seems to work as expected. What is the problem? Is it a bug? Is there some work around or do I have to code my own digital display?
    I made a short video to show the problem.
    LV 2011, Win7

    After I wrote my own implementation of the digital displays I realized that this problem appears also if I use separate controls and place them on the graph. Really annoying. The workaround I found, whether using the native charts digital display or your own version, is to force the graph to refresh. This surprisingly cannot be achieved by the method chart.refresh which doesn't help but by toggling for example Legend.ScrolBarVisible. If you toggle this property after writing data into the graph this annoying bug disappears. Other usable properies for this are: chart.visible, chart.updatemode, chart.plot.visible, chart.plot.color
    LV 2010
    LV 2011, Win7
    Attachments:
    DigitalDisplay_Workaround.bug.vi ‏16 KB

  • Digital Camcorder & router/Airport USB 2.0 to connect eMac with only USB 1

    I've looked around and asked many sources, only to come to the same conclusion that I already thought I knew... no way to go from USB 2.0 through another interface to use firewire on an eMac with only USB 1.1.
    I'm curious if anyone has connected a router with a USB 2.0 to an older mac, eMac and/or TiBook in my case via ethernet so that a digital camcorder might appear under the ip-based items available from the router?
    there is no reason, other than it being painfully slow over USB 1.1 to think beyond the eMac as it otherwise does every task necessary for my in-laws perfectly. never had a single problem that wasn't caused by their inexperience with a computer, which also makes using a mac so much easier to troubleshoot and fix. they just bought a nice digital hdd (hard disk drive, not hd res) camcorder that communicates via USB 2.0 (as almost all do nowadays).
    will any router, or more-specifically an Airport router, be able to communicate with the camcorder via its own USB 2.0 interface and then distribute that data over ethernet to the eMac, or would the router be hamstrung by the same USB 1.1 bottleneck that would affect it if done directly.
    I'm also open to other alternatives... I haven't had a chance to play with the camcorder yet, but I imagine that it will somehow mount to the desktop were it able to comm via 2.0. any thoughts?
    cheers,
    - jeremy

    hi duane,
    thanks for the quick reply. excellent info.
    i noticed that your email said more than the post, did you edit out the last statement, as that was what i was going to comment on...?
    my digi camcorder, a tape-based model, does show up like a volume on the desktop, but i wasn't sure of the new hd-based one that my in-laws purchased would. i am able to see the other not just in imovie, so perhps it will mount in the usb port of a router. i don't have an AEBS, but would purchase one specifically for this use if it did work. however i will test it on my us robotics and belkin models that have usb as well. i might also try my NAS drive that has a usb port for daisy-chaining more usb items.
    the good thing is that the bottleneck on the emac won't affect the process, it's just a matter of whether the hdd-camcorder can be mounted via one of the other options.
    thanks for the other comments, i'll mark as answered once i see how it goes...
    anyone else have any thoughts?
    - jeremy

  • My ipod touch 4th gen battery only lasts for 3 hours with wifi and brightness fully down

    My ipod touch 4th gen battery life if asful only lasts a maxium of 3 hours with wifi turned off and brightness fully down any suggestions?

    You can try restoring the iPod. However, it could be that the battery is going bad.
    Apple will exchange your iPod for a refurbished onewith a new battery for $79. They do not fix yours.
    Apple - iPod Repair price              
    A third-party place like the followingwill rplace it for less. Google for more.
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens
    Replace the battery yourself if you are up to it. You can purchace a replacement battery for about $10
    iPod Touch Repair – iFixit

  • My phone battery can only last an hour. Problem started a week ago while I was in Argentina. I am back in the country now, this morning I left the house with a full battery and when I got to work the phone had shut down. Phone is 7 months old. Why?

    Dear Apple Family,
    I have been using an iPhone since I lost interest with Nokia phones. I fell in love with Apple's innovation, design and technology.  However, I am beginning to lose interest wth the product as well.
    I have an iPhone 5, my phone's battery can only last an hour and the phone is 7 month old.  The problem started last week while I was in Argentina. I had a bad holiday due to this, as I could not make use of the technology because my phone was off most of the time and I had nowehere to charge except to go back to the hotel.  I could not even share pictures on Instagram.  Has anyone ever experienced such a problem?  If so, why and how was the problem fixed?  I am starting to engage in a debate that I have been trying to avoid with my friends.  They say that Samsung is striving and I now tend to agree, and if the problem persists I will gladly join the Samsung family. They seem to make reliable phones.  Sadly, I never experienced this problem with iPhone 3GS & iPhone 4S.
    With Gratitude,
    Thapelo

    Hello,
    If you're in a country where there's an apple shop (unfortunately not mine), go check it and ask the employee about it: he's gonna check your Iphone on a "device"
    I've got an iphone 5 and it's working very well with me but I have to admit that its battery lasts (slower) than my Ipad 2.
    Still i can help with some tips that may improve your iohone's battery by an hour in addition (hopefully):
    - close all apps by multitasking....
    - do NOT keep the brightness to the max
    Believe me you're gonna regret changing your phone to a samsung
    Hope i've helped and sorry for my bad english (has english as 3rd language)

  • In Lion, Word for Mac only prints last two digits of year

    In Snow Leopard, the automatic dates that auto fill in Word for Mac (08, 2011) worked fine...BUT since I 'upgraded' to Lion, (10.7.3) only the last two digits of the year will autofill, EVEN in full date mode...ie, SHOULD BE:
    February 21, 2012
    BUT auto filled as: February 21, 12
    I saw on a MS help site that it's ID'ed as a problem in Lion:
    From http://answers.microsoft.com/en-us/mac/forum/macoffice2008-macword/automatic-dat e-entry-doesnt-enter-entire-year/91793432-006b-4f6a-99fa-cf425266cb84
    This was the query:
    automatic date entry doesn't enter entire year
    Applies To: Office for Mac | Office 2008 for Mac | Word for Mac
    When I enter the weekday at the beginning of a sentence, the month, date and year are automatically filled in. However, instead of having the whole years, such as 2011, it only enters the last two digits, such as "11". This is new since an update a month or so ago. I would like to set it back to the original "Friday, November 04, 2011" if possible.
    Appreciate any help I can get.
    ANSWER:
    Its a bug in OSX.7 evidently MS has not rung up Apple and said hey get off your duff and fix this date issue.  If you can find a place to send bug report to Apple do so.
    So I checked the OSX Lion support site on apple.com and could not find an answer.
    Does anyone know how to fix or how to get Apple to fix?
    Thank you.

    It's a bug, but whether it's a bug for Apple to fix or for Microsoft to fix is unknown. The thread you post is unauthoritative, being only comments by other users who have no more idea as to where the bug really lies (unless an Apple engineer has confirmed a Lion bug, something I've not seen) as any other user does; no one in that thread works for or speaks for either Microsoft nor Apple.
    You can comment on the issue to Apple, if you wish:
    http://www.apple.com/feedback/macosx.html
    but whether it's something they can fix or whether it's Microsoft's problem I can't say.
    Regards.

Maybe you are looking for

  • Gross price for BASB Condition is not picking in Purchase Order invoice tab

    Hi Gurus In taxinj -- conditional base column i added 362 and in pricing procedure for gross price in subtotal column i added 6 but even though when i click invoice tab while creating Purchase Order i am not getting gross price for BASB condition sam

  • USB TV tuner software for OS X?

    I just bought a USB TV tuner, and right now I have to boot my Mac Pro into boot camp in order to use it.  Is there some kind of software for OS X that I can use so that I don't have to do that? EDIT: I found EyeTV, but I would rather have something t

  • CreateMessage without a Service Operation

    In previous versions of tools I could use CreateMessage(Message.MSG_NAME) to create a message. This now appears to have been removed in favour of CreateMessage(Operation.OP_NAME). This is fine when the required message is part of a service operation,

  • How can I do something similar with Lightroom

    With the combination of the Editor of "Photoshop Elements" (PSE) and of the KODAK SHO Professional Plugin (which runs as a "filter"-plugin in the PSE Editor environment), I can often fixd photos which- - have both bright and dark portions - and which

  • Intel imac frequent hangs and spinning ball

    I spend more time looking at that spinning color wheel than I do using my iMac. Someone please help and tell me what I can do to clean things up so it's not lagging. I've run my disk utility, and it came out fine.