Formatting a Date Parameter Field

I created a Date/Time Parameter because the column is date/time.  However, I only want the used to have to input the date portion. I know I can create the parameter as a Date but it returns a negative records even though there are records that meets the criteria.  I know I have done this before, but for the life of me I cannot remember how I did it.
Can someone refresh my memory.
Thanks.
Herbie

I found a way to get round this, here goes.
Create a new Parameter
Change Type to Date Time
Select Expert
Select your date time field and set it equal to parameter
In the parameter fields right click on parameter and select edit.
Change the type from Date Time to Date
Select any range values etc at this point because they will reset when you change from date time to date.

Similar Messages

  • Getting Error with date parameter field -"Invalid DATE"

    Hi
    I created a report with 9.2 version. And  i created 2 date parameter fields in it. And within crystal reports it works fine.
    But If, I call from the VS2005 crystalreport.net(report document) SDK , i am getting error as Invalid Date" enter a Date Value". Actually it is a dtp control. how can i modify it.

    <p>There&#39;s not enough details to get a good understanding of your scenario, but it sounds like you&#39;re using some kind of date control to retrieve the date value and pass it to the report&#39;s parameter field at runtime. </p><p>If this is correct, it sounds like the format of the date value from the control may not be what the report is expecting. To debug, I would first use hardcoded values when you set the report parameter fields to see what works. Then compare that to what the return value is from the control to see if they match. I suspect the formats differ. </p><p>I did a quick search on the BOBJ kbase and found a couple of articles that may help you. I recommend searching as there are lots of information on how to set parameter fields at runtime. </p><p><span style="margin-left: 5px"><a href="http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=c2010247&sliceId=&dialogID=8582434&stateId=1 0 8584068" target="_blank">c2010247</a></span><span style="margin-left: 5px"><span style="margin-left: 5px"><a href="http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=c2010251&sliceId=&dialogID=8582434&stateId=1 0 8584068" target="_blank">c2010251</a></span></span></p><p>-MJ</p>

  • Date format in a parameter field (help)

    Post Author: binsk
    CA Forum: Formula
    Hi Guys,
    Newbie in CR world.
    I need help in changing the date format in parameter field. present setting is YYYY/MM/DD. I need it in DD/MM/YYYY. How is it to be done? My db is running in oracle. I'm using the CR XI version.
    Thanks ahead.
    Alex

    Post Author: Aman
    CA Forum: Crystal Reports
    Thank you for your response Yangster. 
    However, the below formula did not work, it gives me a message that "this field name is not known" {?end_date}.
    date_field in dateadd("d", -100, {?end_date}) to {?end_date}
    Am I not inputing this right? or do need a different formula/method?
    Please help...
    Thank you,

  • How to change date parameter field in crystal from YYYY-MM-DD to DD/MM/YY

    Hi
    I want to change a Parameter field in Crystal report from YYYY-MM-DD format to DD/MM/YY format

    >
    Sukhi Singh wrote:
    > Hi
    > I want to change a Parameter field in Crystal report from YYYY-MM-DD format to DD/MM/YY format
    What do you mean by Crystal Report?  Are you sure you posted this to the correct forum?

  • Format of Date parameter

    Does anyone know of a fix for the Date parameter issue. I have seen a number of posts regarding the same problem.
    When Crystal asks for a Date it is required in the format YYYY-MM-DD, now to a majority of database engines this would appear quite normal. To a regular user this is not normal. Here in Australia we use DD/MM/YYYY our 12 year old database was set up to reflect this and all our reports, created in Crystal 8.5, had no problem with this.
    However after spending 1000's of dollars on the latest version I find that it is basically useless because none of my 100's of reports will work, due to this 'Minor' problem.
    If anyone has experience with Crystal reports against an Informix database and has a workaround solution, or even someone not using Informix, please let us know.
    Thank you, Thank you, Thank you in advance.

    Hi,
    Create a string parameter (named eg. olPrint).
    The user will then input its normal way of date inputting. However it has to be in a format you specify in the caption (dd-mm-yyyy  thus 1 December 2007 = 01-12-2007 and not 1-12-2007)
    Then create a formula PrintDate with the syntax:
    DateTime(Date(
                ToNumber(Mid({?olPrint}, 7)),
                ToNumber(Mid({?olPrint}, 4, 2)),
                ToNumber(Mid({?olPrint}, 1, 2))))
    If you then select your report on = {@PrintDate} it should work.
    Hope this helps.
    Bye

  • Formating a date parameter

    hi guys, i have a parameter in my report of type date, the format mask is the way i want it dd/mm/yyyy now i am using these dates in a title on my report and have done the following:
    title := 'dates:' ||:RP_DATE_FROM||' to '||:RP_DATE_TO;
    however when they are printed out on my report they are in the format dd/mmm/yy ie. 01/JAN/01.
    Any help on how to solve this problem would be appreciated.
    Edited by: user13390506 on 29-Sep-2010 07:12

    hi user,
    try the following,
    title := 'dates:' ||to_char(:RP_DATE_FROM,'dd/mm/yyyy')||' to '||to_char(:RP_DATE_TO,'dd/mm/yyyy');Regards
    Sankar.M.N

  • How to "force" specific format for data entry field (ex: European Phone #)

    Hi,
    I have a table field of 10 chars long holding a phone number.  I need to display this field and allow modification on its content in the following format: "99_99_99_99_99" where "_" is a blank.  What would be the easiest way of managing this ?  Of course, I don't want to store the blanks in the table field.... blanks are only used to make the phone number easier to read.
    Any suggestions will be appreciated.
    Thanks in advance.

    Hello
    Conversion routine is identified by its five-place name and is stored as a group of two function modules. The function modules have a fixed naming convention. The following function modules are assigned to conversion routine xxxxx:
    CONVERSION_EXIT_xxxxx_INPUT
    CONVERSION_EXIT_xxxxx_OUTPUT
    So you can use se37 to create these modules.
    Kind regards

  • Search on Maximum Date Formula Field

    Hello All,
    I am trying to create a report that will return a PART table linked with an outer join to an ORDERDTL table.
    What I would like to do is to return only the Maximum (or last) order date for each part and then have a parameter field that will give me a cutoff date for the last ordered.
    For example:  Part ABC was ordered on 1/1/08 and 1/1/07.  Part XYZ was ordered on 1/1/07 and 1/1/06.  When I enter a cutoff date of 2/1/07 it should return part XYZ but NOT part ABC because ABC was ordered after the cutoff date.
    I can see the parameter being "only return the parts with a maximumdate NOT > parameterdate".  I am having trouble getting the maximum date to be available for query. 
    How do I run a date parameter field against a Formula field with a maximum date?
    Any other pointers?
    Thanks,
    Ross

    you need to create a formula MAXIMUM(DATE) i would have it subtotal on a group, i guess your part #.
    then in the selection criteria, in the group selection you can use that or use a conditional surpression based upon the parameter

  • Adding Date/Time Field + X Number of Days - Basic Calculation Question

    I am assuming this is a basic calculation question. New to Adobe LiveCycle Forms.
    I have a simple form containing a table. The table appears as such:
    Text
    Formatted as Date/Time Fields
    Header 3
    Monday
    user wil choose the beginning date (Date/Time) this is DateTimeField1
    Tuesday
    this should calculate DateTimeField1 + 1
    Wednesday
    this should calculate DateTimeField1 + 2
    Thursday
    this should calculate DateTimeField1 + 3
    Friday
    this should calculate DateTimeField1 + 4
    Saturday
    this should calculate DateTimeField1 + 5
    Sunday
    this should calculate DateTimeField1 + 6
    Calculations are performed after the date is chosen for Monday. My mind tells me the simple calculation of DateTimeField1 + 1 is not going to work (and in fact doesn't!) as it needs to change Monday to a number first. I saw on another thread the following:
    Num2Date(Date2Num(Date(DateTimeField1), "DD.MM.YYYY")+7, "DD.MM.YYYY")
    Thought this was going to get me close. No cigars though!
    Any quick help is greatly appreciated. And since I am new to this, details about what needs to be changed would be great too!
    Thanks

    Here an addition for you date field.
    This FormCalc script in the exit:Event will check it the selected date is on a monday.
    If not it will go the days back until the last monday.
    var Selection = Date2Num($.formattedValue, DateFmt(2))
    var WeekDay = Num2Date(Selection, "E")
    var NewDate
    if (WeekDay eq 1) then
              NewDate = Selection - 6
    elseif (WeekDay eq 3) then
              NewDate = Selection - 1
    elseif (WeekDay eq 4) then
              NewDate = Selection - 2
    elseif (WeekDay eq 5) then
              NewDate = Selection - 3
    elseif (WeekDay eq 6) then
              NewDate = Selection - 4
    elseif (WeekDay eq 7) then
              NewDate = Selection - 5
    else
              NewDate = Selection
    endif
    $ = Num2Date(NewDate, "EEE DD.MM.YYYY")
    Hope this helps, too.

  • How do I set a NULL value for the parameter field

    Hi
    I've another question. I'm going to set single values for parameter fields.
    // e.g. set today for StartDate parameter field
    fc.setCurrentValue("", "StartDate", new Date());
    It should be possible to set a NULL value for date parameter fields.
    fc.setCurrentValue("", "StartDate", (Date)null);
    But this do not work. How do I set a NULL value correctly?
    Thank you in advance.
    Best regards,
    Thomas

    First question - is it a stored procedure parameter?
    You can't set a regular parameter field value to a null value.
    There was an issue with old version of the JRC, where it was allowing null to go through, but had unexpected behavior at times.
    Sincerely,
    Ted Ueda

  • How to change heading text  for parameter field of type date

    Hi,
        After creating a parameter field with the type " Date Time" when I open the report for entering the parameter then it displays  the given parameter with the following text:
    " Please enter Date in format "yyyy-mm-dd". "
    I want to change it to some other text like as:
    " You have to enter the date and time in format yyyy-mm-dd . "
    Is there any way by which I can change this given header to some other text.
    Let me know if anyone needs some more information in this regard so as to solve my given query soon.

    Hi Garrett,
                  Well first of all I can change only the prompt text that is user defined. I cannot change any parameter as of now whose type is let suppose Date. Since in this case the Business Object itself shows the text which is something like this " Please enter Date in format "yyyy-mm-dd". " .
       Here I want to change this given text to some other format like " You have to enter the date in the format yyyy-mm-dd" or in any other manner.
    Also the current Crystal Report version which I am using is 11.0.0.1282.

  • CRS 2008 Web Services: Date parameter format issue

    Hi All,
    I have CRS 2008 installations (Dev environment and TEST environment) on two machine (both are on the build 12.1.0.882). I have a web application that runs crystal reports deployed to these servers using web services. On the DEV Server , the report works fine when the reports input parameters are formatted to mm/dd/yyyy format.  But TEST server (which is a new installation) does not accept a date parameter value for this report in this format and returns a "could not set date parameter" error.  The report runs fine if I pass the parameter in yyyy/dd/dd format from the web-application.
    I compared the regional language settings and Business Objects registry entries on both these machines, CMC settings, and they all seem to match. Am I missing something in the configuration or environment setup that is causing this issue? Appreciate any hints on solving this issue. Thanks so much.
    Regards
    Ajith

    Hi Siva,
    may i know how to do it?
    as i did try to code in the begining by using String for my startDate and endDate. and it is able to consume, but currently if i change the startDate and endDate to Date. it is still able to consume when i change the date from "2008-01-30T10:00:50.342Z" to just "2008-01-30". but when i try to use adobe interactive form. the startDate and endDate i am using the Date/Time Field Type. and the Data Format is as Date. so it will just return "2008-01-30" only.
    the part where i have error is when i try to do a parameter mapping from the interactive form to the web service. it is unable to map as they keep prompting that cannot map a Date to a Time Stamp.
    that is why i stuck at this part.. so i try to find out how to overcome this errors now..
    Regards
    Jia Jun

  • Filtering report data based on user login and Parameter fields

    Post Author: mronquillo
    CA Forum: General
    Hi,I am running a report that filters data based on the user login. To do this, I created a formula called @user that compares the login name (using the CurrentCEUserName field) and returns the user's name. If the user login is not a login specified in the if statements, it returns the parameter field "user_name":For example: if CurrentCEUserName = "loginname1" then "User's Name 1"else if CurrentCEUserName = "loginname2" then "User's Name 2" else if CurrentCEUserName = "loginname3" then "User's Name 3"  else if CurrentCEUserName = "loginname4" then "User's Name 4".. .else {?user_name}   In select expert, I have a condition which filters data based on the string returned from that formula:{Table.Name} = {@user}  This works fine and when the users run the report they only their own data. However, they are still prompted to choose a parameter field regardless if of the value returned by the @user formula. Oddly enough, regardless of what parameter field they choose, they will still only see their own data (i.e. if John chooses "Bob" from the parameter list, he will still only see John's data.)If I remove the "else {?user_name}" line from the @user formula, then the users are not prompted anymore. However, if they are not a "valid" user - that is, if any of the if statements in the formula are not true for their login name - then they will see no data. What I want to do is make the report ONLY prompt the user to choose a parameter field if their login name is not "valid". That is, if the @user formula is able to return a string value for their login name, then they will jump right into the report without being prompted to choose a parameter - otherwise, the user will be prompted to choose a name from the parameter list. I thought my formula would allow this (hence the "else" clause), but it seems that if a parameter field is present in any formula, then the report automatically prompts the user to choose a parameter. Is what I am trying to accomplish possible in CR (I'm using CR v10.0) or is there a better way to do what I am trying to do?Thanks in advance.

    Post Author: sharonmtowler
    CA Forum: General
    try, or something like that
    (if CurrentCEUserName ={?user_name} then true else ({Table.Name} = {@user}) )

  • Format of Date field is loading wrongly in the Infocube 0pp_c01.

    Hi,
    Format of Date field is loading wrongly in the Infocube 0pp_c01. But it is loading properly into PSA.
    I am loading data into PP infocubes from the following DataSources.(they all are 3.x datasources)
    1. 2LIS_04_P_MATNR
    2. 2LIS_04_P_ARBPL
    3. 2LIS_04_P_COMP
    The data is coming properly upto PSA.  For example Actual Start date is loaded in cube like 733.884.
    And, it is the same issue with all the cubes. So I checked the update rules. But, in it the mapping is done properly.
    Thanks $ Regards
    Shyne Sasimohanan
    +91-9632674245

    Hi,
    HEre also value is loaded correctly. The reason u are seeing it in this format is because it is mapped into a key figure in the info cube.
    It will store the value as number of days from a standard date like 1/1/1000 or 1/1/1900 - not sure which one of these, u should be able to search and find the correct date in the forums..but this is the logic behind it
    Hope it helps.
    Regards,
    Rathy

  • Format Date Form Field in Adobe Acrobat Pro

    Thanks in advance for your help. I have date fields in an Acrobat form. Is it possible to create a script to format a date as either MM/DD/YYYY or MM/DD/YY? In other words, if someone enters MM/DD/YYYY, the date would be accepted and MM/DD/YY would also be accepted. Thanks, again.

    Since the time measurement is based on a sattilite revolving around another object in space, much of the concepts and measurements apply to rocket science. But I do not know if all rocket scientist woudl get it. Wasn't there a sattilite that mixed miles and kilometers within the navigation program with a suprising result.
    One needs to get to a common unit and then just do the math.
    Actually JavaScript does have an adjustment for the Date.getYear if the date object is established with the 4 digit year.
    I had a recent issue at work. I work from the U.S and have to access data on a server in the UK using Remote Desktop and the remote deskto is configured for the UK date format unless the user changes it. In prior years the data was processed on servers in the U.S. with U.S. date format. There were many instances when the date and month were swithed and requires over a month to fix. Thank you Microsoft Certified Network Administrators.

Maybe you are looking for