Date Picker - show specific month of perticaular year

Hi Experts,
I am using sam.m.DatePicker control. By default date picker show current month-year when user open date picker. I want to show specific month of specific year when date picker is open.
for eg: In my app, if student appearing for next year exam(say 2016) then when he click on date picker it should show April of 2016 instead of april of 2015. I don't want to set date by default. Student should select that date manually.
Is it possible to show specific month and year for date picker when it open.
Thanks in advanced.

Hi,
you can also give a default date of the first date of that month.
Why you are not using that?
var datePicker = new sap.m.DatePicker({
                                        valueFormat: "yyyy-MM-dd",
                                        displayFormat: "long",
                                               value: "2014-03-26"
Regards
Dhananjay

Similar Messages

  • I am attempting to have cells use data from a selective month from the year before so that I can show actual from the prio. years each month.

    I am attempting to have cells use data from a selective month from the year before so that I can show actual from the prio. year each month. I need to create a spreedsheet using the the Acutlas from the year-to-date and from last year-to-date, but need to report each month.

    Hi Tony,
    Answering your question would be easier given a screen shot of the source table and one of what you want the summary table to look like.
    Is the data you want for each month in a single cell o the source table, or does the summary table need to collect February's data (for example) from several cells and do some math with those numbers before presenting them on the summary table?
    Regards,
    Barry

  • To get last date of all the month in between year 2000 to 2100

    Hi all
    how we can make view that list last date of all the month in between year 2000 and 2100
    Thanks & regards
    vivek

    You would use the LAST_DAY() function:
    WITH months AS
         SELECT      TO_DATE('01/01/2000','MM/DD/YYYY') AS dt1
         ,     TO_DATE('12/31/2100','MM/DD/YYYY') AS dt2
         FROM     DUAL
    SELECT LAST_DAY(ADD_MONTHS(dt1,level-1)) LST_DAY_MONTHS
    FROM     months
    CONNECT BY LEVEL <= MONTHS_BETWEEN(dt2,dt1)+1Sample of results (too many to post):
    LST_DAY_MONTHS
    01/31/2000 00:00:00
    02/29/2000 00:00:00
    03/31/2000 00:00:00
    04/30/2000 00:00:00
    05/31/2000 00:00:00
    06/30/2000 00:00:00
    07/31/2000 00:00:00
    08/31/2000 00:00:00
    09/30/2000 00:00:00
    10/31/2000 00:00:00
    11/30/2000 00:00:00
    12/31/2000 00:00:00
    01/31/2001 00:00:00
    02/28/2001 00:00:00
    03/31/2001 00:00:00
    04/30/2001 00:00:00
    05/31/2001 00:00:00
    06/30/2001 00:00:00
    07/31/2001 00:00:00
    08/31/2001 00:00:00
    09/30/2001 00:00:00
    10/31/2001 00:00:00
    11/30/2001 00:00:00
    12/31/2001 00:00:00
    01/31/2002 00:00:00
    02/28/2002 00:00:00
    03/31/2002 00:00:00

  • Find the difference between two dates for the specific month and year

    Hi,
    I have two dates, start date is 30/12/2012 and end date is 04/01/2013. Using datediff I found the difference of days between two dates. But I find the no of days in January 2013. ie output is 4 instead of 6. I input month and year to find the no of days
    for that date. In this case I input Jan 2013. How can I sql this ?

    I don't understand how most of the answers provided here not analytically solving the problem with many cases possible.
    First let me understand you:
    You have 2 dates range and you want to calculate day range for specific month and year between the original date range.
    declare @for_month int = 1 --January
    declare @for_year int = 2013
    declare @StartDate date = '2012-12-20'
    declare @EndDate date = '2013-01-04'
    SELECT
    CASE
    WHEN (DATEPART(MONTH, @StartDate) = @for_month and DATEPART(MONTH, @EndDate) = @for_month) and ((DATEPART(YEAR, @StartDate) = @for_year or DATEPART(YEAR, @EndDate) = @for_year)) THEN
    DATEDIFF(DAY, @StartDate,@EndDate)
    WHEN (@StartDate < cast(CONVERT(varchar(4), @for_year) + '-' + CONVERT(varchar(2), @for_month) + '-01' as date)) and (@EndDate between (cast(CONVERT(varchar(4), @for_year) + '-' + CONVERT(varchar(2), @for_month) + '-01' as date)) and (cast(DATEADD(d, -1, DATEADD(m, DATEDIFF(m, 0, cast( CONVERT(varchar(4), @for_year) + '-' + CONVERT(varchar(2), @for_month) + '-01' as date)) + 1, 0)) as date))) THEN
    DATEDIFF(DAY, DATEADD(MONTH, DATEDIFF(MONTH, -1, @EndDate)-1, 0),@EndDate)
    WHEN (@EndDate > cast(DATEADD(d, -1, DATEADD(m, DATEDIFF(m, 0, cast( CONVERT(varchar(4), @for_year) + '-' + CONVERT(varchar(2), @for_month) + '-01' as date)) + 1, 0)) as date)) and (@StartDate between (cast(CONVERT(varchar(4), @for_year) + '-' + CONVERT(varchar(2), @for_month) + '-01' as date)) and (cast(DATEADD(d, -1, DATEADD(m, DATEDIFF(m, 0, cast( CONVERT(varchar(4), @for_year) + '-' + CONVERT(varchar(2), @for_month) + '-01' as date)) + 1, 0)) as date))) THEN
    DATEDIFF(DAY, @StartDate,DATEADD(d, -1, DATEADD(m, DATEDIFF(m, 0, @StartDate) + 1, 0))) + 1
    WHEN ((DATEDIFF(DAY, @StartDate, cast(DATEADD(d, -1, DATEADD(m, DATEDIFF(m, 0, cast( CONVERT(varchar(4), @for_year) + '-' + CONVERT(varchar(2), @for_month) + '-01' as date)) + 1, 0)) as date)) >= 0) and (DATEDIFF(DAY, cast(CONVERT(varchar(4), @for_year) + '-' + CONVERT(varchar(2), @for_month) + '-01' as date), @EndDate) >= 0)) THEN
    DATEDIFF(DAY, cast( CONVERT(varchar(4), @for_year) + '-' + CONVERT(varchar(2), @for_month) + '-01' as datetime), DATEADD(d, -1, DATEADD(m, DATEDIFF(m, 0, cast( CONVERT(varchar(4), @for_year) + '-' + CONVERT(varchar(2), @for_month) + '-01' as datetime)) + 1, 0))) + 1
    ELSE
    0
    END as [DD]
    I don't know how you calculate day range between 01/01/2013 and 04/01/2013
    is 4, it is actually is 3 but if that is the case, you can add 1 from the condition.

  • Date Picker: Only select Month and Year

    Hallo,
    I try to configure the Date Picker. For the users it should only be possible to select Month and Year. The column should be automaticly completed with the first day of the select month and a static time (00:00:00).
    How can I do this?
    Sincerly

    You can't do that with a standard date picker. What you could do is to use it and after you change the value in it you modify the value using javascript and ajax similar to what I do in this example:
    http://htmldb.oracle.com/pls/otn/f?p=31517:9
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Get data from a specific month?

    I have this code:
    <h1><cfoutput>#self#</cfoutput></h1>
    <cfquery datasource="Intranet" name="month_data">
      select * from CSEReduxResponses where status=1 and execoffice_status=0
       AND MONTH([approveddate]) = MONTH(GETDATE())
       </cfquery>
    <cfquery datasource ="Intranet" name="GetDeptSubmissions">SELECT * FROM CSEReduxResponses</cfquery>
    <cfquery dbtype="query" name="GetApproved">SELECT * FROM GetDeptSubmissions WHERE status = 1 AND execoffice_status = 1</cfquery>
    <cfquery dbtype="query" name="GetDenied">SELECT * FROM GetDeptSubmissions WHERE status = 1 AND execoffice_status = 2</cfquery>
    <cfif month_data.RecordCount gt 0>
    <cfoutput>
              <h2>Comments / Ratings Administration</h2>
              <div>
                        <div class="display_count pending_outer">
                                  <div class="display_count_desc pending_inner">Pending</div>
                                  <cfif month_data.RecordCount gt 0><a href="cse_execoffice_pending.cfm"></cfif>
                                            <span class="display_count_number">#month_data.RecordCount#</span>
                                  <cfif month_data.RecordCount gt 0></a></cfif>
                        </div><!--- /div class="display_count" --->
                        <div class="display_count approved_outer">
                                  <div class="display_count_desc approved_inner">Approved *</div>
                                  <cfif GetApproved.RecordCount gt 0><a href="cse_execoffice.cfm?approved"></cfif>
                                            <span class="display_count_number">#GetApproved.RecordCount#</span><br>
                                  <cfif GetApproved.RecordCount gt 0></a></cfif>
                        </div><!--- /div class="display_count" --->
                        <div class="display_count denied_outer">
                                  <div class="display_count_desc denied_inner">Denied</div>
                                  <cfif GetDenied.RecordCount gt 0><a href="cse_execoffice.cfm?denied"></cfif>
                                            <span class="display_count_number">#GetDenied.RecordCount#</span><br>
                                  <cfif GetDenied.RecordCount gt 0></a></cfif>
                        </div><!--- /div class="display_count" --->
              </div>
    </cfoutput>
    </cfif>
    Right now it display the the output if the 'month_data.recordcount gt 0' , but this would be for all the
    data from the current month because of the query 'month_data'
    What I want to do display_count for each month.
    for example right now it display the data from April, but once its May I would like to display another
    'display_count' from the month of March, even if the other Pending from April still has not hit zero(0).
    any help/advice will help, not sure if there is a better way to do this.
    this is a example of what i have right now, this has 3 peding in the month of April

    Carl Von Stetten wrote:
    It looks like you've posted this same or related question twice on StackOverflow (http://stackoverflow.com/questions/22970021/how-can-i-show-a-output-fr om-a-specific-date and http://stackoverflow.com/questions/23092245/how-to-output-different-da ta-from-different-months).  If you're going to cross-post to multiple forums, then mention that and provide links to your posts on other forums so people can see what others are suggesting and not duplicate efforts.
    Plus http://forums.adobe.com/message/6295752#6295752
    @No_name_123
    As I suggested elsewhere, I hope you will spend more time doing the code than explaining your requirements for fellow developers to do the code for you. I would avoid saying things like these:
    ... What I want to do display_count for each month....
    ... I would like to display another 'display_count' from the month of March...
    Instead, I would write some code, or even pseudocode, and then ask for suggestions on it.
    Message was edited by: BKBK

  • Date Picker shows displays wrong timezone after Apex 2.2 upgrade

    After upgrading from 2.0 to 2.2, all date pickers in all applications now display the time in GMT instead of GMT - 7.
    For example: before upgrade 08/03/2006 9:00 -- after upgrade 08/03/2006 16:00.
    The date and time on the server is set to GMT - 7. The database displays GMT - 7 in all other non-Apex apps.
    I suspect there's a global preference that needs resetting, but I can't find it.
    Cheers,
    Jaime

    Hi Jaime,
    What you are witnessing is a feature and not a bug. Shame on us for not making this change in behavior more prominent. But this feature ultimately emanated from the posting at:
    Re: Date Picker and timzone
    In Application Express 2.2, if you are using a DatePicker, the current date and time will be computed based upon LOCALTIMESTAMP. LOCALTIMESTAMP is time zone aware. By default, it will use the database's time zone.
    To control the user's time zone setting in your application, you could add a before-header application-level process (and, ultimately, another one on Submit) to issue a PL/SQL statement like:
    execute immediate 'alter session set time_zone = ''America/New_York'' ';Note:
    1) Those are sets of two single-quotes around America/New_York, not double-quotes
    2) Obviously, you'd replace America/New_York with your favorite time zone. The full list is at:
    http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14225/applocaledata.htm#sthref2012
    As a quick demonstration, run the following block in SQL Commands on apex.oracle.com or your favorite APEX instance:
    begin
        dbms_output.put_line( 'LocalTimestamp Before: ' || localtimestamp );
        execute immediate 'alter session set time_zone = ''America/New_York'' ';
        dbms_output.put_line( 'LocalTimestamp After: ' || localtimestamp );
    end;
    /I hope this helps.
    Joel

  • 7.4.00070 Ticket date format showing as day of the year ie 191-jul-15

    http://community.spiceworks.com/help/Date_Time_Formatting?utm_campaign=app_help&utm_medium=app&a...
    SW help on the topic.

    There is an issue in the latest version where it is sowing the day of the year instead of the day of the month. I have tried changing it via setting to dd-mm-yyyy but nothing happens
    This topic first appeared in the Spiceworks Community

  • Data per month and previous year

    Hi all,
    I have a requirement that is to show 2 columns, one for the actual data for a month and the other one to show the data for the same month of previous year.
    For example:
    Month   Profit_Center Actual Previous_Year
    08.2010 10000           10.25  12.50
    I know that I can create the second column filtering by same month-12, but when i show the Month,the result is:
    Month    Profit_Center Actual Previous_Year
    08.2009 10000            10.25   0
    08.2010 10000             0         12.50
    We want to show just one row with the actual month and both columns. How can I do it, without change the backend. I would like to do it in front end (in query designer).
    Regards, Federico

    Hi Sukhi,
    Thanks for your answer. I have tried with offset also, but the data is filled in 2 rows cause of i am doing a drill down by Calmonth.
    Year/Month | Actual Data | Data of previous year
    (08.2010) | 150 | 0
    (08.2009) | 0 | 80
    And I want to show just one row, like this:
    Year/Month | Actual Data | Data of previous year
    (08.2010) | 150 | 80
    The idea of this is to compare the data between the month that i put in the preselection and the data of same month but the previous year.
    Thanks in advance for your help, Federico

  • Create Date Column out of Full Month Name and Year

    I am trying to use Power Query to create a new column of data as a Date.  My data contains two columns: Month as the full text name and Year, for purposes of this example, I will set all days to the 15th.  In Excel, I would simply use a formula
    to convert the text month to the proper date part.
    Example:  [Month] = "January" and [Year] = 2013
    DATEVALUE([Month]&" 15, "&[Year])
    What is the syntax to Add a Column in Power Query with this conversion? 
    Thanks, Barbara

    For an existing table in the editor with columns Month and Year, click "Insert Custom Column" and use this as the formula:
    = Date.FromText([Month] & " 15," & Number.ToText([Year]))
    This will create a formula which looks something like this:
        InsertedCustom = Table.AddColumn(Source, "Custom", each Date.FromText([Month] & " 15," & Number.ToText([Year])))
    Note that one difference between Excel and Power Query is that Excel will let you concatenate text and numbers with "&" but Power Query requires that you first convert the number to text.

  • How to use the function SOMME.SIS for a specific month ?

    Hello,
    I want to use the function SOMME.SIS with a condition that would be a specific month of the year. Does anyone know how to do that ?

    Hi Amir,
    Ahaa! SUMIFS
    Here is Table 1
    Date
    Month
    Product
    Sold
    2 January
    January
    A
    20
    3 January
    January
    A
    40
    3 January
    January
    B
    50
    5 February
    February
    A
    10
    6 February
    February
    B
    5
    7 February
    February
    A
    15
    8 February
    February
    B
    2
    Table 2
    Month
    A
    B
    January
    60
    50
    February
    25
    7
    March
    0
    0
    April
    0
    0
    May
    0
    0
    June
    0
    0
    July
    0
    0
    Formula in B2 (and Fill down and Right)
    =SUMIFS(Table 1::$D,Table 1::$B,$A2,Table 1::$C,B$1)
    Regards,
    Ian.
    Edit: Your region may use ; instead of , in formulas. Ian.

  • Show all months in an Analysis OBIEE 11.1.1.6.2

    Hi,
    I have a requirement to show all months of the year, even though some of the months do not have data. For example, I have got data for Feb and March of 2013 but it an analysis should show all the month of the year 2013. I have achieved this changing join in BMM layer between FACT and TIME to "Left Outer". However when I add another dimension to analysis , it only shows the data for the months Feb and March.
    Can someone help to find the solution? Thanks in advance.

    Then I suspect the day dim mapping with logica fact tables's source.
    Expand logical fact->Sources->Fact source table properties->General tab
    check that day is listed or not
    If listed: then change the join type to outer
    If not listed: (give a try) by adding it and setting outer join
    let me know updates
    Note: Proper testing required to see impact on other dims

  • Disable date picker

    How do I disable date picker item (specifically the date picker pop up). I am workingon Version 3.0
    Thanks and Regards,
    Kumar

    Hello Kumar,
    In that blog post I explained how you can disable the clickable datepicker image (that will show the popup), when you disable your datefield.
    As you can see in the comment, if you add a condition to make the date field read-only the icon is automatically removed, but if you disable the datefield during navigation on your screen (using javascript), that wasn't happening.
    And in the example I used jQuery (installing that is a prerequisite), to disable all icons of date fields that are disabled.
    A function for disabling the icon of a specific datefield should be something like:
    function disableIcon( pThis ){
      var i=this.id;  
      $('#'+i+'_IMG').click(function() 
      {return (!document.getElementById(i).disabled);}); 
    }And you can call that using : disableIcon('Pxyz_DATE');
    HTH
    Greetings,
    Roel
    http://roelhartman.blogspot.com/

  • How to validate date picker value

    Hi,
    When a date is entered manually in the date picker .ie 01/03/08 the year 08 is saved as 0008 in the database rather than 2008. How to validate the value in date picker to save the year as 2008 instead of 0008.
    Ven

    The date picker does not always "store" the value for you - you create it with a particular format such as DD-MON-YY and then like any character to date field you need to be careful to use a format mask and to_date. Alternatively, change the format to DD-MON-YYYY.
    Are you using this in a query or defined as a page item? Do you have the app on the APEX site?
    Phil

  • Function module to get the same date of the previous month

    Hi
    Can anybody tell me how to get the
    same date of the previous month.
    example if i am entering date as 30 may 2007
    i want the date as 30 april 2007

    CALL FUNCTION 'RP_CALC_DATE_IN_INTERVAL'
    EXPORTING
    date = pa_end
    days = '00'
    months = '01'
    signum = '-'
    years = '00'
    IMPORTING
    calc_date = pa_end.
    ENDIF.
    nd try below FMs as well...
    CCM_GO_BACK_MONTHS
    HR_PT_ADD_MONTH_TO_DATE
    RP_CALC_DATE_IN_INTERVAL
    Hope it will solve your problem...
    Reward points if useful..
    Thanks & Regards
    ilesh 24x7

Maybe you are looking for

  • Data transfer from sap r/3 into excel sheet for mi01

    hi gurus,    as i  am a xi consultant i got requirement to write a program for data transfer from sap r/3 into excel sheet for MI01.can any body help me by giving sample code or example for this requirement.please help me.

  • Message Not coming to XI system

    Hello, Am Facing an issue in Production XI system. The issue is in File to RFC Interface,which is running on Daily basis,there is a daily job to Place the File on FTP server. The Problem is File is Picking by XI and File also archived in Archive dire

  • Iphone 5 will not stream audio when screen goes black?

    When I try to stream audio from a website and my screen shuts off, then the audio quits.

  • Adding custom field in ME2B and business function activation

    Hi Experts, I have one requirement for adding one custom field in ME2B for ALV output. From some old thread i come to know we have to implement BADI "ME_CHANGE_OUTTAB_CUS". But when i search for this BADI its not available. For this BADI suppose we h

  • Connection between  oracle 9i server and oracle 9i client

    hi there, i have installed both oracle 9i server and oracle 9i client in my system.how can i connect these two to have connection between these server and client? Because i was using only 9i server for creating database and for other purposes.i have