Getting the day of lst of the month

Hi, how to get the day (sun, mon,......) of every lst of every month. I can get the current day using calendar.get(Calendar.DAY_OF_WEEK). This will return an int indicating the day.
If today is wed(5th Feb 2003), it will return int 4.
How do I get the day for the lst of every month?
Thanks

You can give this a try:
Calendar cal = new GregorianCalendar(); // Get today's date, or pass in your own date
cal.set(Calendar.DATE, 1); // Set the date to the 1st of the month
dayOfWeek = cal.get(Calendar.DAY_OF_WEEK); // Get the day

Similar Messages

  • Adding reminders to my calendar items is no longer an option after the software upgrade.  I also can't get to day and week view, only month view.  What's a possible solution?

    Adding reminders to my calendar items is no longer an option after the software upgrade.  I also can't get to day and week view, only month view.  What's a possible solution?  I'm using Andriod version 4.4.2 with kernal 3.4.0.

        @MaloneTP
    Thanks for keeping me updated!  Do you see the screen options displayed in the following link: http://bit.ly/T2koBL for changing the calendar view options in Kies Air?  Also, let me know if you're able to add a Reminder by following these steps: http://bit.ly/T2l9dY.  Keep me posted.  Thanks!
    AnthonyTa_VZW
    Follow us on Twitter @VZWSupport

  • TS1702 help, are you having the same problem? iPad 2 calendar, can't get the month of March, can get days in March, but not month view. Any suggestions, thank u.

    help, are you having the same problem? iPad 2 calendar, can't get the month of March, can get days in March, but not month view. Any suggestions, thank u.

    Hi melbernai - not sure if you've solved this problem yet. I had the exact same problem recently with my 2nd Gen iPod Nano. I solved it yesterday by simply updating iTunes to the most recent version, after which I could get rid of the register screen. The only other thing I needed to do to add my custom playlists was select "Manually manage music" on the screen for my iPod, since it had been in an automatic synching mode since the problem occurred.

  • How to get the monthly interest rate

    Hello!
    I have been using AppleWorks for 10 years.
    Since that time, I use a financial template named Mortgage Analyser.
    In this file, one can get the pmt if one provided the +pv, monthly interest rate and the number of periods.+
    What I get is the reverse, that is, how to get the +monthly interest rate+, if I provide the +pv, the number of periods and the pmt+?
    I think I had this in the past, but I can not find it.
    Thanks,
    Jorge Lucas (the guy from Rio Grande do Sul)

    Peter,
    I already saw that, but it does not give me what I want.
    That works only if you put a money at a savings account and DO NOT TOUCH IT for a given period.
    My need right now is to help a girl to buy a car in 36 or 48 monthly payments and calculate the real interest.
    I want to have this for any other similar buying.
    I can do it using the Mortgage Analyser template changing the MONTHLY RATE by *+try and error+* but — +since I am a High School Math Teacher+ — I would like to have the function directly.
    Another day I was looking on the Internet and it seems that there is no direct response for what I want, using AppleWorks.
    So, if I continue to use AW, I must calculate it by try and error.
    Thanks anyway!
    Jorge Lucas (the guy from Rio Grande do Sul)

  • How to get the Month from no of week

    Dear Friendz
    I have one variable which contains the value as 200547 where 2005 is the year and 47 is the no of week.
    now i want to get the month from the no of week.
    so how to solve the problem???
    thank in advance.
    Regards
    nilesh shete

    Hi,
    report ztest.
    data: myweek type SCAL-WEEK,
          mydate type SCAL-DATE,
          mymonth(2).
    myweek = '200547'.
    call function 'WEEK_GET_FIRST_DAY'
         EXPORTING
              WEEK   = myweek
         IMPORTING
              DATE   = mydate
         EXCEPTIONS
              others = 9.
    mymonth = mydate+4(2).
    write mymonth.
    Svetlin

  • Get the month from a date column with the calculated column

    I am trying to get the month from a date field with the help of calculated column. However I get this syntax error whenever I want to submit the formula:
    Error 
    The formula contains a syntax error or is not supported. 
    the default language of our site is German and [datum, von] is a date field.

    Hi,
    I have created two columns
    Current MM-YY
    Calculated (calculation based on other columns)
    Today
    Date and Time
    Current MM-YY is calculated value with formula as
    =TEXT(Today,"mmmm")
    But the output shows as December instead of May.
    I have tried =TEXT([Datum, von];"mmmm") but no help.
    I am trying to populated the column automatically with current month..ex: if its May the field should show May, next month it should show June an so on.
    Any kind help is grateful.
    Regards,
    Pradeep

  • How to create a formula to get the month name based on userresponse

    Hi,
    I have created a report using E-Fashion - Actually i need  a report like  -  For ex i need 4 months data from 12 months
    My report should display the 4 months data along with starting & end month data in the next 2 columns
    I have used the prompt to fetch the data & i have created a formula in the cloumn like below:
    For the column haader i have given = Tonumber(userresponse("Enter start:")) - I am getting the Month number in the header But i need the month name in the header.Please guide me
    Regards
    Karthika

    Hi Ram,
      Thanks for your Help.I tried in an another way like I created 2 Variable -
    Start Date  =UserResponse("Enter Month(Start):"
    End Date = =UserResponse("Enter Month(End):"
    I have created the column header for
    start date:
    =If([start Date] = "1";"January";If( [start Date] = "2"; "February";If([start Date] = "3";"March";If([start Date] = "4";"April";If([start Date] = "5";"May";If([start Date] = "6";"June";If([start Date] = "7";"July";If([start Date] = "8";"August";If([start Date] = "9";"September";If([start Date] = "10";"October";If([start Date] = "11";"November";If([start Date] = "12";"December"))))))))))))
    End Date:
    =If([End Date] = "1";"January";If( [End Date] = "2"; "February";If([End Date] = "3";"March";If([End Date] = "4";"April";If([End Date] = "5";"May";If([End Date] = "6";"June";If([End Date] = "7";"July";If([End Date] = "8";"August";If([End Date] = "9";"September";If([End Date] = "10";"October";If([End Date] = "11";"November";If([End Date] = "12";"December"))))))))))))
    For the Datas in the column:
    Start Date:
    =[Sales revenue] Where([Month]=ToNumber(UserResponse("Enter Month(Start):")))
    End Date:
    =[Sales revenue] Where([Month]=ToNumber(UserResponse("Enter Month(End):")))
    I got the Report format as i required
    Thanks
    Karthika

  • Hello, I recently downloaded a trial version of Lightroom and then decided to get the monthly photoshop membership.  When I launch Lightroom, my choices are to enter a serial number to continue the trial.  On the adobe website, it says "Yes.  You can conv

    Hello, I recently downloaded a trial version of Lightroom and then decided to get the monthly photoshop membership.  Now, when I launch Lightroom, my choices are to enter a serial number to continue the trial.  On the adobe website, it says "You can convert your trial to a Creative Cloud complete or single-app membership by purchasing on the Creative Cloud website. After you purchase your membership, your desktop product trial will automatically be licensed upon relaunch."  But this is not the case.  I do not want to risk losing my catalog and the work I have already done in Lightroom, so what should I do?

    Chat Now button near the bottom for Activation and Deactivation problems may help
    http://helpx.adobe.com/x-productkb/policy-pricing/activation-deactivation-products.html
    OR
    Asked to sign in after paying may help
    -http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html
    or
    http://helpx.adobe.com/creative-cloud/kb/license-this-software.html
    Membership and Payments http://helpx.adobe.com/x-productkb/policy-pricing/membership-subscription-troubleshooting- creative-cloud.html

  • BPC - Script - How to get the month of a date stored as an amount?

    We have a account called "StartDate" in our database.
    The user enter a date for this account: 01/07/2010
    This date is then stored as 40360 in the db
    We are trying to get the month number (7) out of this record.
    We succeeded to write an sql query to do that:
    Select Month( cast( as datetime ) )
    From tblFact
    Where = 'StartDate'
    Any idea how to do that in a bpc script logic ?
    Thanks,
    Bénédicte

    There's no built-in support for any type of date math in BPC script logic.
    One approach I've used is to add a property to the time dimension, ExcelTimeID. Then you can compare the value to your time periods, if your logic requires this type of condition.
    *WHEN SignedData
    *IS < Time.ExcelTimeID
    But that doesn't solve the problem you have, where you want to know the month. I can't think of an immediate solution, other than perhaps in the original input schedule to hide a second account that submits the month number (as an integer) along with the account you have now (with the full date).
    Or stick a stored proc in some logic package, scheduled to run every 10 minutes or whatever, that takes the account with the date in it, and runs your query, saving the result as the month number. Ugly in so many different ways, but it's another way to tackle the problem further upstream.
    And last result is to build script logic with ridiculous hard-coding of Excel time IDs all over the place.

  • If I purchase a phone online can I get the monthly payment without the two year contract?

    If I purchase a phone online can I get the monthly payment without the two year contract?

    There is the Edge payment option to spread the full retail price of the phone over the course of two years. It is a payment contract and not a service contract.

  • Getting the Month value and Name from the Ranges of the Date given input.

    Hi Techies,
    I am developing Monthly wise report in FICO. My Inputs are Company Code, Fiscal Year and Date Range. From the Date Range I have to get the month and Generate the Report.
    For Ex:
    BUKRS : 1000
    GJAHR : 2009
    FKDAT : 01.04.2008 to 01.04.2009
    From the Above Date range how can I get the individual month names or periods. As per my Knowledge I can get the month value when the date is parameter but here the date is ranges.  Is any code available for this ?
    Thanks in Advance
    Regards,
    Muralikrishna Peravali.
    Edited by: muralipsharma on Aug 31, 2010 10:30 AM
    Edited by: muralipsharma on Aug 31, 2010 12:57 PM

    DATA: lv_dat          TYPE dats,
          lv_day          TYPE c LENGTH 2,
          lv_month        TYPE c LENGTH 2,
          lv_year         TYPE c LENGTH 4.
    DATA: lv_poper        TYPE t009b-poper.
    DATA: lt_poper        TYPE TABLE OF t009b-poper.
    SELECT-OPTIONS: so_dat        FOR sy-datum.
    break fis-kemmer.
    lv_dat = so_dat-low.
    DO.
      CLEAR: lv_poper.
      CALL FUNCTION 'FI_PERIOD_DETERMINE'
        EXPORTING
          i_budat        = lv_dat
        IMPORTING
          e_poper        = lv_poper
        EXCEPTIONS
          fiscal_year    = 1
          period         = 2
          period_version = 3
          posting_period = 4
          special_period = 5
          version        = 6
          posting_date   = 7
          OTHERS         = 8.
      APPEND lv_poper TO lt_poper.
      lv_day    = lv_dat+6(2).
      lv_month  = lv_dat+4(2).
      lv_year   = lv_dat(4).
      lv_month = lv_month + 1.
      IF lv_month LE 9.
        CONCATENATE '0' lv_month INTO lv_month.
      ENDIF.
      CONCATENATE lv_year lv_month lv_day INTO lv_dat.
      IF lv_dat GT so_dat-high.
        EXIT.
      ENDIF.
    ENDDO.
    after that you have a list of all the FI periods in internal table LT_POPER.
    get the idea?

  • Want to get the month number from month name

    Hi Friends
    Can you suggest  me a function module which would <b>convert the month name to the month number.</b>?
    Example : suppose the input is<b> December 20,2006</b> I want to get it converted to SAP internal format YYYYMMDD i.e. <b>20061220.</b>
    Would reward pointns for immediate help.:-)
    Also is there a function module which would convert date given in any format to the SAP internal format.
    Thanks
         Rita.

    Hi,
    I am not aware of any FM that will convert alphnumeric dates to SAP internal format.
    However, you could create a simple logic to convert this with the assumption that your first string is for the month then date then year:
    =====
    DATA: l_date(20) VALUE 'December 20,2006',
          l_new_date(8),
          l_month(10),
          l_day(2),
          l_year(4).
    START-OF-SELECTION.
      TRANSLATE l_date TO UPPER CASE.
    *- Get month string (separated by space from day & year)
      SPLIT l_date AT space INTO l_month l_date IN CHARACTER MODE.
    *- Get day & year (separated by comma)
      SPLIT l_date AT ',' INTO l_day l_year IN CHARACTER MODE.
      l_new_date0(4) = l_year0(4).
      l_new_date6(2) = l_day0(2).
    END-OF-SELECTION.
    *- Get numeric month
      SELECT SINGLE mnr FROM t247
        INTO l_new_date+4(2)
        WHERE ktx = l_month+0(3).
      IF sy-subrc = 0.
        WRITE:/ l_new_date.
      ELSE.
        WRITE:/ 'Invalid date'.
      ENDIF.
    Thanks.
    Kind Regards,
    Darwin

  • How to get the month value in a date?

    I am retrieving a Date from the database using the getDate() method! However, I want the value of the month in this obtained result, which i want to compare with an integer!
    I dont see any other option but to use the deprecated getMonth() method on this Date object! Or rather get the date as a String & apply the substring methods to get the reqd value!
    Is there any other go on this?

    Hi
    You can use GregorianCalendar.
    Date d = new Date();
    Calendar c = new GregorianCalendar();
    c.setTime(d);
    System.out.println(c.get(Calendar.MONTH)+1);
    -nmw-

  • I bought Lightroom 5 but then realized I need an earlier version or something to actually run it. I'd like to return it and then just get the monthly membership.

    Hey! I bought Lightroom 5 but then realized I need another version to actually use it. So I want to return it and then just get a monthly Lightroom membership.

    By “monthly membership” do you mean access to these forums, or paying $10/month for access to PS+LR, the Photography Plan?
    If the latter, realize that you cannot get an earlier version of LR than 5 with the monthly plan, because LR4 had no ability to check to see if it is licensed via a subscription.  This capability started with LR 5.
    If you mean you need to buy LR4 or upgrade your computer to OS X 10.7+ or Windows7+, then your only option with your current computer is to buy the obsolete LR4 on somewhere like Amazon, and make sure it is the full version not the upgrade version.

  • FM to get the month name based on numeric value

    Hi , Is there any FM which returns the month name when we enter the corresponding numeric value . E.g. if the input is 3 the output must be March

    Hi,
    Try
    DATA: mon_number TYPE numc VALUE '03',
          month_name(20).
    SELECT ltx
      FROM t247
      INTO month_name
    WHERE spras = 'EN'
       AND mnr   = mon_number.
    Hope it helps.
    Regards
    Message was edited by: Shehryar Khan

  • How can i get the month and year of the current  open Periode?

    At the beginning of each month the booking period for the new month was not open,but i need to book material automatically with the last day of the old month. The booking period will change at the first working day between 13 and 17 a clock. when the booking period was changed i have to book with the current date.
    How can i do this ??
    Regards
    Ralf

    Hi Ralf,
    here's a complete example:
    DATA: last LIKE sy-datum, "ultimo of last month
          gjahr LIKE t001b-frye1,
          buper LIKE t001b-frpe1.
    last = sy-datum - sy-datum+6(2) .
    PERFORM check_period.
    IF sy-subrc <> 0.
      ADD 1 TO last . "-> next month
      PERFORM check_period.
      IF sy-subrc <> 0.
        MESSAGE a001(00) WITH 'no open fi period'.
      ENDIF.
    ENDIF.
    *formatting for germany
    CONCATENATE last+6(2) last+4(2) last(4) INTO bbkpf-budat.
    WRITE: / bbkpf-budat.
    FORM check_period.
      MOVE last(4) TO gjahr.
      MOVE last+4(2) TO buper.
      CALL FUNCTION 'FI_PERIOD_CHECK'
           EXPORTING
                i_bukrs          = bbkpf-bukrs
                i_gjahr          = gjahr
                i_koart          = '+'
                i_monat          = buper
           EXCEPTIONS
                error_period     = 1
                error_period_acc = 2
                OTHERS           = 3.
    ENDFORM.                    " check_period
    regards <a href="https://www.sdn.sap.com:443/irj/servlet/prt/porta
    l/prtroot/com.sap.sdn.businesscard.SDNBusinessCard?u=i
    Wo3ssHlIihvCrADIEGqaw%3D%3D">Andreas</a>
    Message was edited by: Andreas Mann

Maybe you are looking for

  • How connect 2 Mini's to one usb printer

    Can a double usb plug at the printer be used with a separate usb cable from each printer (separate Mini's different systems on opposite sides of the room with printer inbetween) or is it necessary to have a powered usb hub at the printer to do that?

  • Help Me, How to catch exception thrown from ejbStore

    Hi, I am working on application running on Iplanet Application Server 4.0. Problem is the application exception thrown from the ejbStore don't reach the calling servlet, calling servlet receive TransactionRollback exception which is system exception.

  • I am unable to install the latest os x upgrade

    When I try to install os x, latest upgrade a window appears telling me I must restart to complete the installation. When I do that and the computer comes back on, I still have the latest upgrade of os x to download. One time it began downloading and

  • 2 problems: either sealed violation or NoClassDefFoundError

    Hi all, i'm trying to run the JSP/XML web application mentioned by developers.java.sun.com. It consists of a jsp page, a ParserBean and a helper class. I tried to run the bean alone with a little test driver and it was all fine, but combined with the

  • IOS 7, photos which were cropped do not exactly fit window anymore

    One thing i instantly noticed after upgrading to iOS 7 is that photos I cropped either outside the ipad or with photo editing apps like iphoto or snapseed on the ipad, sometime do not fit the window in the Standard Photo Viewer anymore. (I use ipad 4