Date format changes in the variable of presentation

Hello
I have a problem with the date stored in the variable of presentation.

I have simple guest with the calendar control (default value date is set to session or deposit to the current date variable). Selected date is stored in the variable of presentation PP_DATE.
I have a simple report with the title to view the contents of the variable PP_DATE.

And now the problem.

When I navigate to the page of dashboard with this report, I will get date of variable PP_DATE in a format (there are difference when I use the variable session or repository). After that I have will push the Start button, I get a different date format of variable PP_DATE.

Screenshots are stored and described in this PDF file: [PDF with screenshots: https://docs.google.com/uc?export=download & id = 0B2LOPOBteIShMDRmYTJlYTItNmYyZC00ODdkLWE5NjktNzI1N2RlNWMwZjBk]

There is difference between session variable and repository. When I use the reference variable I'll get "TIMESTAMP."... "the variable PP_DATE, which is the default initialization in variable Repository Manager. I tried to remove the boot by default, but I automatically added after saving changes.
What is the default value of crimped guest of session variable, I get another date variable PP_DATE format that refers to DATE_TIME_DISPLAY_FORMAT = "yyyy-mm-dd hh:mi:ss.mss" (from NQSConfig.ini). I changed standard value DATE_TIME_DISPLAY_FORMAT ' yyyy/mm/dd hh' to "yyyy-mm-dd hh:mi:ss.mss" because I am reading data from excel, where dates are stored in the format MSSQL. But this isn't the reason for my problem. I have the same problem also with standard DATE_TIME_DISPLAY_FORMAT.

The result of this strange behavior is that I get errors when I do some calculations (e.g. TimeStampDiff) to the variable PP_DATE. I get the error when I am accessing the dashboard page. Everything is ok after that I will push the Start button.

You have some tips?

Thank you

Kishore Guggilla wrote:

But I need sometimes current day default value in the command prompt, sometimes first day of the month etc...

How do you manage that using variables to repository then?

I have a block of initialization to initialize a few variables to repository.
Initialization block a 1 day refresh interval.

Select trunc (sysdate, 'mm'),
LAST_DAY (trunc (sysdate, 'MM')),
trunc (sysdate, 'DD'),
trunc (sysdate, 'YYYY'),
TO_DATE (' 31,12' | to_char (sysdate, 'YYYY')),
TO_NUMBER (to_char (sysdate, 'YYYY')),
TO_NUMBER (to_char (sysdate, 'MM')),
TO_NUMBER (to_char (sysdate, 'DD')),
trunc (ADD_MONTHS (sysdate-1), 'MM'),
trunc (LAST_DAY (ADD_MONTHS (sysdate-1))),
trunc (ADD_MONTHS (sysdate-2), 'MM'),
trunc (LAST_DAY (ADD_MONTHS (sysdate-2))),
trunc (ADD_MONTHS (sysdate,-3), 'MM'),
trunc (LAST_DAY (ADD_MONTHS (sysdate,-3)))
of the double

Tags: Business Intelligence

Similar Questions

  • Capture selected vales of Date dates invite you using the variable of presentation

    We have an obligation to display the date on the text of the report / whatever the user selects the date from the command prompt.
    We have a date called created and used operator is between.
    Can someone help me in this area, the use of variable presentation to capture the values of a single Date column of creation?

    In the criteria to add more than 2 columns for Date of creation
    and use these expressions foreach and hide them
    MAX (RMAX (creation Date))
    MIN (RMIN (creation Date))

    In your story view we will call @1 and @2. assuming that these 2 columns are first from left to right.

    No need to use variables of the presentation.

    Mark as correct

    Thank you

    Published by: Srini VIEREN on April 22, 2013 16:47

  • You should have seen the date using the variable of presentation

    Hi all

    I am facing a problem in the display of the selected date of the guest in the report using the variable of presentation. I have a guest of data (calendar prompt), where the user selects the value. I take this value in the variable RBAP of presentation and report when I try to display this value using the same presentation variable, I get my date in the following format

    "TIMESTAMP 2010-10-22 00:00:00 '.

    I'm just using ' @{RBAP}' in the formula in the column.

    I want to show my date in the format DD/MM/YYYY. How to do this?

    I have used CAST (' @{RBAP} {' as DATE} and tried to change the data to dd/mm/yyyy format, but it does not work.)

    Please suggest

    Thank you
    Ronny

    in the default section to write the SQL...

    Select the OPTION case SENSITIVE WHEN 1 = 0 THEN AnyExistedDateColumn CURRENT_DATE of OTHER END OF SubjectArea

  • How change value of adf.currentDate Date Format change

    Hi all


    I try by default a variable to bind a SQL query by default Date VO. I used adf.currentDate in the default Expression of the bind Variable.

    the expression returns the value in the format 'YYYY-MM-dd', but the format required for the binding variable is "MM/dd/YYYY".


    I can have any groovy expression that allows to change the format or should I have to do this programmatically?

    Please help me with an idea / code snippet.

    Thank you
    TK

    Published by: 803641 on October 25, 2010 11:50

    What type is your variable binding (it seems to be a String/varchar) - If you do date comparison in the database, you must use date comparisons. Assuming you are trying to compare a column in the database, you can use something like:

    where your_date_column = to_date(:bind_var, 'YYYY-MM-DD')
    

    If you really need to get a string in the format MM/DD/YYYY, you could:

    to_char(to_date(:bind_var, 'YYYY-MM-DD'), 'MM/DD/YYYY')
    

    John

  • Date format changes when you put an Excel file in Indesign

    I have an Excel sheet with the date format DD-MM-YYYY.

    I need to put this Excel file in Indesign - and the link, so I can update the Excel sheet and put it auto updated in Indesign.

    So I put my file management preferences to "create links when placing text years Spreadsheeet Files", go to file > Place and choose my Excel sheet. In the import option, I don't see any option to keep the date format. But when I look at the table in Indesign changed the date format DD/MM/YYYY.

    The same thing happens if I chose 'To format table' or 'Unofrmatted'. That if I copy and paste the table actually the show dates above right. But it's not a solution for me, since I need the linked Excel file!

    So, do I did wrong? Is there some settings in Indesign to preserve the format of Excel date instead of change?

    I use the Mac version and I get different results with the 2011 and older versions. I tested the top down and the values are different. On windows, MS Office is better, so I often work on Mac, but change to Windows, then save again with a new file name, and use it. But not everyone has this opportunity.

    With Excel on Mac is a huge problem that. and exchanged everwhere in its German version. It's ok in numbers, as German and English exchanged. and,

    But with the files exported as CSV, it becomes a huge problem, because Excel separates files CSV Comma, but pointed, and no other application (and neither itsself Excel) will read these files correctly. Excel on Mac is so good for the calculation, but if you go information in another application it is a mess.

  • date format is lost (the "HH24:MI:SS" bit)

    I would like to take a date value, a table and insert it into another array of the same type of data. Unfortunately I am not able to keep the HH24:MI:SS of the date when inserting.

    Here is an example of what I'm doing: -.
    -----------------------------------------------------
    create table emp (id,name,valid_from)
        as
            select 1, 'david', to_date('18/11/2008 08:23:21', 'DD/MM/YYYY HH24:MI:SS') 
            from dual 
    -----------------------------------------------------
     DECLARE
    
       TYPE t_cursor_usrr      IS REF CURSOR;
       v_cursor_usrr           t_cursor_usrr;
       
       l_emp                   emp%ROWTYPE;
       sql_stmt                VARCHAR2(32767);
    
     BEGIN
      
     OPEN v_cursor_usrr FOR 'SELECT * FROM emp';
        FETCH v_cursor_usrr INTO l_emp;
     
      sql_stmt:= 'INSERT INTO emp2(
       ID,         
       NAME,       
       VALID_FROM,
       ) VALUES ('    
        ||         l_emp.id                                          || ','        
        ||         l_emp.name                                        ||','       
        || '''' || to_date(l_emp.VALID_FROM,'DD/MM/YYYY HH24:MI:SS') || ')';
         
       dbms_output.put_line(sql_stmt);
      
     END;
    It is the output: -.
    INSERT INTO emp2(
       ID,         
       NAME,       
       VALID_FROM,
       ) VALUES (1,david,'18-NOV-08)
    As you can see the date format has changed! Any ideas?

    You are dynamic sql statements; Why you convert a date into a date? This is a BAD, BAD, BAD idea! You are forcing an implicit conversion to a string, and then back to a date, and it depends on what are your nls parameters. This is a bug that just waiting to happen!

    Maybe you are after this instead:

    sql_stmt:= 'INSERT INTO emp2(
       ID,
       NAME,
       VALID_FROM,
       ) VALUES ('
        ||         l_emp.id                                          || ','''
        ||         l_emp.name                                        ||''','
        ||' to_date('''||to_char(l_emp.VALID_FROM, 'DD/MM/YYYY HH24:MI:SS')||''',''DD/MM/YYYY HH24:MI:SS''))';
    

    But why you do this instead of a straight line:

    INSERT INTO emp2
    SELECT ID, NAME, VALID_FROM
    FROM emp
    

    I don't understand!

    Published by: Boneist on November 18, 2008 09:46

  • What is the date format used in the charts of Microsoft Support policy? Is the day/month/year or month/day/year?

    For example, the Date of beginning of life cycle shows 31/05/2001 (March 5) and the end of Support Date extended watch 07/12/2001 (12 July or December 7).

    The date format is month/date/year. This format is for the start date and end date for extended Support.
    In your example, the start date is May 31, 2001, and the end date would be July 12, 2001.

    I hope this helps.

    Marilyn

  • date format limits in the workflow

    Hello

    I try to add a time limit to one per programming workflows, but I have problem with the date format

    How do I format this date? ¿It is a date or a string?

    < workflowengine:completeassignment

    "site ="pub_id"

    "ID ="assignment_id"

    [ACTION ="action_comment" "]

    [comment ="comment" "]

    "NeXTSTEP ="next_workflow_step_id"

    "varname ="assignment_name"

    ["date limit ="deadline""]

    [assignmentlist ="participant_object" "] / >

    Thank you

    Finally, the date must be a string with the date in milliseconds.

  • documents on the variable of presentation need...

    Hello world

    I'm hurt on the concepts of variable presentation, so I really need some basic documents or links to the site on variables of presentation to learn with examples will be truly grateful.

    Concerning
    s

    Hello

    You should not initialize by using an inot block, when you apply a prompt value by clicking the Go/apply button, variable presentation will get initialized using the prompt value.

    Kind regards
    DpKa

  • Is there a way to change all the variables of the form variables URLs?

    Is it possible to change or copy all the variables in the url, so they have a scope limited as variables of form with a single statement?

    For example:

    < cfset form.var1 = url.var1 >

    < cfset form.var2 = url.var2 >

    < cfset form.var3 = url.var3 >

    Is this possible with a single statement?

    Have you tried:

    OR

    I'm not 100% sure that you can add to the scope of the form like that in all versions of the CF.

    If not, you can work with a thrid variable that you incorperate both form and url variables in.  It is a common technique in the fuse box, I think.

  • OSB - item values change in the variable of XML response

    I get the response xml in OSB following variable:

    <>sets

    < doc >

    < name > testing Documents < / name >

    < links >

    < link >$ $U https://test1.com$ $DTesting Document1 < / link >

    < link >$ $U https://test2.com$ $DTesting Document2 < / link >

    < link >$ $U https://test3.com$ $DTesting Document3 < / link >

    < link >$ $U https://test4.com$ $DTesting Document4 < / link >

    < / links >

    < / doc >

    < doc >

    Reviews of < name > < / name >

    < links >

    < link >$ $U https://exams1.com$ $DExams Document1 < / link >

    < link >$ $U https://exams2.com$ $DExams Document2 < / link >

    < / links >

    < / doc >

    < / sets >

    I want to edit (delete $$you and $$ J + content and keep the onlt https link) the above xml response and send a final response to the customer as follows:

    <>sets

    < doc >

    < name > testing Documents < / name >

    < links >

    < link > https://Test1.com < / link >

    < link > https://test2.com < / link >

    < link > https://test3.com < / link >

    < link > https://Test4.com < / link >

    < / links >

    < / doc >

    < doc >

    Reviews of < name > < / name >

    < links >

    < link > https://exams1.com < / link >

    < link > https://exams2.com < / link >

    < / links >

    < / doc >

    < / sets >

    Thank you and best regards,

    Rakesh

    [code]

    XQuery version "1.0" encoding "Cp1252";

    (: parameter pragma = "$anyType1" type = "xs: anyType" ::))

    (: pragma type = "xs: anyType" ::))

    declare namespace xf = "http://tempuri.org/ProcesIntegratieService/test/";

    declare function xf:test ($anyType1 as element (*))

    {element (*)}

    {

    for $doc in $anyType1/Doc

    return

    {$anyType1/Name}

    {

    for $link in $doc/links/link

    return

    {substring-after (substring-before($link,'$$D'),' $$U ')}

    }

    }

    };

    declare the variable $anyType1 as element (*) external;

    XF:test ($anyType1)

    [/ code]

    output

    [code]

    https://Test1.com

    https://test2.com

    https://test3.com

    https://Test4.com

    https://exams1.com

    https://exams2.com

    [/ code]

  • Lotus Notes Date format question on the XP machine

    User on the AD domain is part of the XP machine and the date in the Lotus Notes database format becomes jj/mm/aa in a field, but saves as 7 December 2012 without worrying for the user.

    I sign on the pc and everything works fine, any ideas?

    Hello Skeetersmom,

    The Microsoft Answers community focuses on issues and problems related to the consumer environment. Please join the public IT pro TechNet forums below:
    TechNet - Windows Server
     
    Thank you

  • Start date of change for the employee

    I have an employee whose departure date was entered incorrectly. The system will not start date change which indicates that allocation changes exist between the old and the new dates.

    This is what the data looks like:

    Employee has been shown as hired August 1, 2014.

    An assignment was made for 1 - August to August 2, 2014.

    A second tour there on 3 August 2014 and the end date is 31-Dec-4712

    The start date must be changed in August 16, 2014.

    Two assignments seem to be a data entry error.

    Is there a way to accomplish this change? Since the two assignments are in error, there is not need to exist.

    Any help is appreciated.

    Datetrack on August 1, 2014 and go to the screen for the assignment. Use the remove menu icon and a popup asking if you want to delete all future changes...

    Once you remove the future recordings, you will have a unique assignment record.

    Navigate to the file and replace the most recent start date August 16, 2014.

    Hope that helps.

  • Report not loading - using the variable of presentation

    Hi all

    I use a variable presentation in the guest of my dashboard and going to the filter in the report. The report will give me no result even when it meets the criteria. I have to purge the cache and then it will display the results. I do 20 - 30 times a day and I don't know what the problem is. Can someone guide me what needs to be done to solve this problem.

    Thank you.

    Hello
    Yes like angelique suggests trying to create the same report in another page with variable presentation online. I do not have that we might have this problem with cahce. Even try to make protected filter (click the filter option, you can see it).

    Kind regards
    Srikanth

  • Question of Date format change

    I have a MySQL (5.19 I think) that has a date field. A date in the database type is
    similar to this format: 2007-12-25 00:00:00. I would like to dynamically fill a
    (in PHP) Web page with a table that has a date column. The format I want
    display in the browser is: December 25, 2007 and just for curiosity, I want to be
    able to display this same column like 25/12/2007. Any ideas how this is done?

    JumpCat4 wrote:
    > $query_JobListing = "SELECT jobid, person, e-mail, phone, company, position,
    > city, State, description, date
    > OF job_entry
    > Date of DATE_FORMAT(date, '%M %e, %Y') AS «;)

    It should be this:

    $query_JobListing = "SELECT jobid, person, e-mail, phone, company,
    position,
    City, State, description, date of DATE_FORMAT(date, '%M %e, %Y') AS)
    OF job_entry;

    > Any ideas? I would like to make sense of it.

    You'll never make sense until you learn the basic rules of the SQL.
    Start with this tutorial:

    http://www.Adobe.com/devnet/Dreamweaver/articles/sql_primer.html

    Dreamweaver is just a tool that helps in the creation of websites to help
    (X) HTML, PHP, and SQL. He can do everything for you, so more you
    Learn more about the technologies that you are handling more easily you will be
    find it.

    --
    Adobe Community Expert David Powers
    Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

Maybe you are looking for