CMC not converting parameter correctly YYYYMM to Real Date Time

I have a paramater in a report that is a string because the value is stored in the database as a string: YYYYMM.
I need to convert this string parameter into a real date time (Assuming the last day of the month)
I've tried this a number of ways which work fine in my desktop Crystal client but CMC changes the values.
For Year I'm using this function:
numbervar DateInput;
numbervar DtYear;
DateInput:= {?p_RevYRMOEndRange};
DtYear:= ToNumber (mid(ToText (DateInput),1,4));
DtYear;
which returns 2010 for example on the desktop, and 201 in infoview/CMC
For the Month my function is:
numbervar DateInput;
stringvar DtMo;
numbervar DtMoNum;
DateInput:= {?p_RevYRMOEndRange};
DtMo:= (Right(ToText (DateInput),2));
DtMoNum:= ToNumber (DtMo);
DtMoNum;
which returns 2 on my desktop and 0 in CMC.
Any ideas on a different way I could do this which might be more reliable in CMC?
Thanks,
John

numbervar DateInput;
numbervar DtYear;
DateInput:= {?p_RevYRMOEndRange};
DtYear:= ToNumber (mid(ToText (DateInput),1,4));
DtYear;
2010 and 201 looks like there is a leading space
try to print
numbervar DateInput;
DateInput:= ">"+{?p_RevYRMOEndRange}+"<";
and then look at trim options
Edited by: AlunJD on Jun 23, 2011 2:32 PM

Similar Messages

  • TS3297 My 2nd generation ipod touch is giving me the following error when I try accessing Itunes or the app store. "Cannot connect to the Store. A secure connection could not be established. Please check your date & time settings"  I am on a secure networ

    My 2nd generation ipod touch is giving me the following error when I try accessing Itunes or the app store. "Cannot connect to the Store. A secure connection could not be established. Please check your date & time settings"  I am on a secure networkl.

    Can't connect to the iTunes Store
    Make sure that time zone is correct in addition to date and time

  • Since last week my date & time have not worked on my 5c. The date & time are constantly wrong. I've shut down, doesn't work. Set it automatically, doesn't work. I don't get texts or calls when it's sleeping. Any suggestions?

    Since last week my date & time have not worked on my 5c. The date & time are constantly wrong. I've shut down, doesn't work. Set it automatically, doesn't work. I don't get texts or calls when it's sleeping. Any suggestions?

    try a reset.
    Hold the home & power buttons down simultaneously until you see the Apple logo appear.
    Note: no data will be lost.

  • Convert field value from Double to Date Time.

    Hi Every one.  Its been a long time since i have last posted on this site but i need some help again please.
    I want to convert a field value (saved as format double) to a date time value. I dont seem to find a function
    that can do this can anyone give me some help please?
    A sample would be to convert 40249.6588697106 to the format of Date Time being 12/03/2010 15:48:46
    Any suggestion?
    Thanks

    You can define a date time variable and use CDateTime.
    dim d as DateTime
    d = CDateTime(40179.55833333)
    formula = d

  • Problem deleting cross-references: Deleted cross-references do not convert to correct text

    This helpful page states that, "When you delete a cross-reference, the source cross-reference is converted to text."
    I use InDesign to create user's manuals, which are full of cross-referenced page numbers.
    The cross-references are all internal to a single document, they do not link to other documents. Each cross-reference is linked to paragraph text and the cross-reference format is Page Number.
    I find that whenever I delete a cross-reference, the cross-reference does convert to text; however, the text—which in this case is a page number—is wrong.
    For example, this sentence is on page 16:
    "You can measure your heart rate using either the handgrip heart rate monitor or an optional chest heart rate monitor (see page 21 for information about the optional chest heart rate monitor.)"
    Screenshot:
    However, when I delete the cross reference, the sentence now reads:
    "You can measure your heart rate using either the handgrip heart rate monitor or an optional chest heart rate monitor (see page 16 for information about the optional chest heart rate monitor.)"
    Screenshot:
    Now, to my mind, the cross-reference should have converted to the text "21," since that is what the cross-reference said (and it is the correct page number for the optional heart rate monitor text that is being referred to).
    Instead, the cross-reference converted to the text "16," which is the number of the page that the sentence is actually on, but is most definitely not what the cross-reference said and is not the correct page number to boot.
    Do any of you know the reason this happens?
    Is there a way to make the text convert to the correct page number when the cross-reference is deleted?

    Update: The cross references work when I export the book as Print PDF. Sadly this solution does not work in my case, because all my interactive element are disabled when exporting as Print PDF.

  • XML not pulling color correction or Motion Generator data?

    Does FCPX 10.0.8 support exporting XML data related to color correction or motion Generator templates?
    If I export a project to XML and reimport the same XML film into FCPX all resources are recognized and appear in the correct place/lane. My custom motion title themes come through, but the "Whites" generator in the project reverts its settings to default (i.e., in the Generator tab of the inspector the pop up is set to Smokey (defualt) instead of "Bright White" (selected in my original project). I also loose any color work I did on any of my clips.
    Anyone have a similar problem? Workaround?

    Hello veritasmediapro,
    I was wondering if you discovered a solution for the above. I am experiencing the same as what you describe. I was hoping I could use the fcpxml format to have a 3rd party tool generate a file that changes motion generator parameter values. My plan was to use key frames. As far as my experiments tell generator parameters as well as key frames on generator parameters are not supported :-(

  • TS1702 Cannot connect to store. Which reads a secure connection could not be established. Please check your date & time settings. What should i do if its already set to the right date and time?

    Can not enter my apps store or itunes store. What should i do?

    Turn the tables on the iTunes Store. Try this.
    Go to Settings>General>Date and Time>Set Automatically>Off. Set the date one year ahead. Try to download the apps again. If you get an error message, go back to the settings. Correct the date and time (set automatically) then go back and try again.

  • How to convert parameter in to proper date format in unix.

    My requirement is to convert parameter string (012011) as a date in unix without support from other like sql. then once it is converted into date format how to increment it by one day. Here i want to use my own date rather than system timestamp of unix system. Please help.
    I am unix HP unix 11.

    Moderator Action:
    Your question is outside the scope of this Linux forum space, and is locked.
    You seem to hope for assistance with a specific Unix that is a product from a specific company.
    I suggest you go to that company's forum community and ask there.  You will undoubtedly find many people there that are familiar with the nuances if that OS.

  • Date difference is not showing the correct result for date interval

    Hi Expert,
                    I've created two formula variable one for PO date and another for GR date
    while i am taking the date difference of GR and PO date for single PO date selection
    it showing me correct result , but while i am taking the date interval for PO date it not
    showing the correct result.
    eg: PO date: 01.01.2010   for a particular PO and Gr date is suppose 03.01.2010, 06.01.2010
          it showing the result 2 and 5.
    But if i am taking date interval for PO date:
    eg: 01.01.2010 - 31.01.2010
    PO date: 10.01.2010 and GR date are suppose 15.01.2010, 22.01.2010 and 30.01.2010
    it showing me 14, 21 and 29
    Thanks and Regards
    Lalit Kumar

    Hi Expert,
                    Through replacement path.
    Thanks and Regards
    Lalit Kumar

  • Date/Time Field but not a date field type..

    I am dealing with a table that was already created and filled/filling with data.. so don't have an option to have someone go back and fix.
    The field i am dealing with is a varchar2 not a date field.
    it has values like
    12/31/1899
    2/17/2010 10:00:00 AM
    2/24/2010 9:00:00 AM
    2/17/2010 8:30:00 AM
    2/24/2010 9:00:00 AM
    12/31/1899
    Basically the 12/31/1899 dates are supplied the data source as an indicator that the real date/time is unknown until it gets updated later in the day or next day. (why its like this i don't know)
    anyways.. I need to drop records that are 7 days old.
    So for say the 2/17/2010 ones, when its 2/24/2010 when the process is ran, those records will get deleted but with the '12/31/1899' ones staying as they are awaiting to be given a date/time '12/31/1899' date is always used for the 'unknowns' so that is constant. The other 'valid ones' always have a date and a time given.
    I've tried a few things today, but kept blowing up.
    Edited by: CPSteven on Feb 11, 2010 6:04 PM

    >
    ORA-01830: date format picture ends before converting entire input string
    With that command
    The time in their messing with it?
    >
    You'd have that problem if the date format picture ends before any of your your strings end....
    Eg.. your date field has "time component" and you just use... "DD-MON-YYYY" as the format picture.
    However, If your format picture includes the maximum possible detail (of any of your strings) , you'll not see that error. Check this code below.
    sql> select * from temp;
            ID DATE_STRING
             1 02/11/2010 03:10:26
             2 02/10/2010 03:10:26
             3 02/09/2010 03:10:26
             4 02/08/2010 03:10:26
             5 02/07/2010 03:10:26
             6 02/06/2010 03:10:26
             7 02/05/2010 03:10:26
             8 02/04/2010 03:10:26
             9 02/03/2010 03:10:26
            10 02/02/2010 03:10:26
            11 12/31/1899
            ID DATE_STRING
            12 12/31/1899
    12 rows selected.
    sql> delete from temp
      2  where date_string != '12/31/1899'
      3    and to_date(date_string,'MM/DD/YYYY') < (sysdate-7);
      and to_date(date_string,'MM/DD/YYYY') < (sysdate-7)
    ERROR at line 3:
    ORA-01830: date format picture ends before converting entire input string
    sql> delete from temp
      2    where date_string != '12/31/1899'
      3      and to_date(date_string,'MM/DD/YYYY HH24:MI:SS') < (sysdate-7);
    4 rows deleted.
    ----In your case.. your format mask would be to_date(date_string,'MM/DD/YYYY HH:MI:SS AM')

  • Shopping Cart header text ( Approval Note )with User id, Date , Time

    Hi Experts ,
    We are mapped SC header Text to Classic PO header text sucessfully. But in the SC Approval Note system is automatically  pouplating User Id, Date , Time and Time Zone ..along with manullay entered Text.....and same is pouplating in tyhe created Classic PO.
    We don't want these extra things in the SC and PO both .
    Can anyone please suggest how we can achive this ?
    Thanks
    NAP

    Thanks Jay. Resolved .
    So without Badi this is not possible. Right ?

  • Acrobat X not Converting Excel Sheet Correctly

    Hey all hoping someone is able to assist
    Our Client is using Acobat X on his Windows 7 machine.  When he attempts to convert an Excel sheet it converts ok except for the invoice sheet where the formatting gets screwed up (it has pictures in it company logo and address).  The company logo and address do not get translated correctly and formatting is off.  It has never worked for him before.
    Actions Taken:
    - Granted user local admin right but no difference
    - Removed the Adobe COM add in and reinstall in Excel but no difference
    - Repaired Office but no difference
    - Reinstalled Acrobat X but no difference
    - Logged on with another domain account and using the same PC but different profile I could convert same file without issue
    - Above point indicated something to do with users profile.  I created a new profile for user and it worked! but then within 5 minutes he had the same issue!!
    - Tried running process monitor to see what the differences were between the files my profile touched and users.  Trawling through we are essentially touching the same dlls etc
    Because it works for me I suspect it must be something to do with users profile but not sure where it could be
    Anyone else come across this issue?  any help greatly appreciated!

    Hello.  thanks for responding.
    Page size is good.
    When I went to Word and printed to the Adobe PDF printer, part of the text on page one of my document is missing but most of the other text is there.
    Printer Preferences and Properties seem fine in Word.
    I had a similar issue a while back and remember it was the current version of Flash causing the issue.  We had to unistall flash and install an older version.  But what's funny is the latest version of Flash results in the same problem and so does the previous version of Flash...which when I had that, the PDF conversion worked fine until last week.

  • When converting tables in a MS Word 2010 or 2007 to PDF the table borders do not retain the correct thickness as identified in the word document.  Is there a solution for this issue?

    When converting tables in a MS Word 2010 or 2007 to PDF the table borders do not retain the correct thickness as identified in the word document.  Is there a solution for this issue?

    Please try with latest version of MS Word and Acrobat.
    Regards,
    Anoop

  • I have canceled my account same day and joining because the convert PDF to word did not convert correctly how to get credit for cancelled membership

    I have canceled my account same day and joining because the convert PDF to word did not convert correctly how to get credit for cancelled membership

    You need to contact Adobe Customer Support :
    They will check and assist you. (Live Chat)
    Contact Customer Care

  • Acrobat X does not convert figures in Word docx that are linked visio objects correctly

    Acrobat X trial does not convert figures that are linked visio objects correctly.
    I have a Word 2007 document with a figure that is a linked Visio Object.
    Acrobat 9 converts the page with the figure correctly.
    Acrobat X givcoverts the page with a blank figure and a play button and selecting the play button gives an all black figure.

    Can you please share the word/visio file having issues in Acrobat X? Also please let us know the OS details on which you tried this file?
    -Vishal/Adobe.

Maybe you are looking for

  • How to delete my iCloud using an old email no longer in use.

    I have an old AOL account that I no longer use.  I tried resetting the password but that didn't work.  So every time I go to delete the account it asks for my password which I do not know or not able to get anymore.  Does anyone know a way to delete

  • Slow wi-fi on OSX 10.6.8, caused by Firefox 11.0?

    For a week I've been following hints and tips on the tricky subject of poor wi-fi connectivity on my iMac, without any success after changing DNS settings and doing lots of other things. The problem started a couple of weeks ago. I now think I have a

  • MacBook Pro Battery bulging after 10.6.8 upgrade

    I have a MacBook Pro Core Duo 17-inch: 2.16GHz (MA092LL/A), purchased in May 2006. It has been a superb performer. I ran Tiger (10.4.11) on the machine until recently, when I upgraded to Snow Leopard (10.6.8). I usually run the machine on the power s

  • Getting strange message when trying to send in a web mail. can you help

    I work for a  ISP  and one of our customers was having trouble with their webmail.  she was getting this message when trying to reply to messages.  http://mail.e-isco.com Message Not Sent! Following sender has not been Accepted: "cece778"&lt Does any

  • Z Report of Transaction ME28.(Release Purchase Order)

    Dear all,                I want to make Z Report for the Transaction ME28 (Release Purchase Order). I am facing problem of GUI status in my Z Report. Actually Report is not displaying like ME28. and all the menu and function keys are also not coming