How to generate multiple dates for a year [Sunday or Monday or Tuesday]

I want to generate number of holidays for 1 year. based on the box I choose I want to generate all the days in the year. example - if I select the Sunday & Monday I want to generate all Sunday, Monday [dates] for a year.

number of Sundays and Mondays [dates] for a year

What I would do, is be a table or an index of collection arrayCollection with number of Flex for the day of the week. For example, index 0 will always represent Sunday.
The State of the check box would change the value of the table at this level, turn MonTableau [0] to true or false

public static millisecondsPerDay:int const = 1000 * 60 * 60 24;

private var myArray:Array = new Array;
myArray [0] = false
myArray [1] = true
myArray [2] = true
myArray [3] = true
myArray [4] = true
myArray [5] = true
myArray [6] = false

private void GenerateNoofHolidays (): void
{

var myDate:Date = new Date();
var startDate:Date = new Date (myDate.fullYear, myDate.month, myDate.date, 0, 0, 0, 0);
var endDate:Date = new Date (startDate.getTime () + (365 * millisecondsPerDay));

While (! startDate > endDate) {}
for (var x: Number = 0; x)< myarray.length;="">
If (myArray [StartDate.getDay ()] == false) {}
He has a holiday doing something, that is to say put a full date of this day in an array / collection arraycollection for manipulation

}
startDate.setMilliseconds (startDate.getMilliseconds () + millisecondsPerDay)
}
//
}

Alert.Show ("\n" + startDate + endDate);
}

Tags: Flex

Similar Questions

  • How to get the date for the first Monday of each month

    Dear members,

    How to get the date for the first Monday of each month.

    I wrote the following code

    SELECT decode (to_char (trunc (sysdate + 30, 'MM'), 'DAY'), 'MONDAY', trunc (sysdate + 30, 'MM'), NEXT_DAY (trunc (sysdate + 30, 'MM'), "LUN")) FROM DUAL

    But he looks at complex bith.

    Abhishek

    Published by: 9999999 on 8 March 2013 04:30

    Use the IW format - it will make independent NLS solution. And all you need is truncated 7th day of each month using IW:

    select  sysdate current_date,
            trunc(trunc(sysdate,'mm') + 6,'iw') first_monday_the_month
      from  dual
    /
    
    CURRENT_D FIRST_MON
    --------- ---------
    08-MAR-13 04-MAR-13
    
    SQL> 
    

    Here is the list of the first Monday of the month of this year:

    with t as(
              select  add_months(date '2013-1-1',level-1) dt
                from  dual
                connect by level <= 12
             )
    select  dt first_of_the_month,
            trunc(dt + 6,'iw') first_monday_the_month
      from  t
    /
    
    FIRST_OF_ FIRST_MON
    --------- ---------
    01-JAN-13 07-JAN-13
    01-FEB-13 04-FEB-13
    01-MAR-13 04-MAR-13
    01-APR-13 01-APR-13
    01-MAY-13 06-MAY-13
    01-JUN-13 03-JUN-13
    01-JUL-13 01-JUL-13
    01-AUG-13 05-AUG-13
    01-SEP-13 02-SEP-13
    01-OCT-13 07-OCT-13
    01-NOV-13 04-NOV-13
    
    FIRST_OF_ FIRST_MON
    --------- ---------
    01-DEC-13 02-DEC-13
    
    12 rows selected.
    
    SQL> 
    

    SY.

  • How to use mobile data for large app download data

    How to use mobile data for large app download data

    How can I set big data

  • How to complete the data for months current quarter of the last month of the previous quarter

    • Here is the create table and insert the statement how my data is as
      CREATE TABLE SAMPLEDATA (Snapshot_M DATE, Date_Ky DATE, F_Quantities INTEGER)
      INSERT INTO VALUES SAMPLEDATA (SEPTEMBER 1, 2014 ", 1 SEPTEMBER 2014", 14)
      INSERT INTO VALUES SAMPLEDATA (OCTOBER 1, 2014 ", 1 OCTOBER 2014", 13)
      INSERT INTO VALUES SAMPLEDATA (1 NOVEMBER 2014", 1 NOVEMBER 2013', 12)
      INSERT INTO VALUES SAMPLEDATA (DECEMBER 1, 2014", 1 DECEMBER 2013', 11)
      INSERT INTO VALUES SAMPLEDATA (JANUARY 1, 2014 ", 1 JANUARY 2014", 10)
      INSERT INTO VALUES SAMPLEDATA (FEBRUARY 1, 2014 ", 1 FEBRUARY 2014", 90)
      INSERT INTO VALUES SAMPLEDATA (MARCH 1, 2014 ", 1 MARCH 2014", 20)
      INSERT INTO VALUES SAMPLEDATA (APRIL 1, 2014 ", 1 APRIL 2014", 23)
      INSERT INTO VALUES SAMPLEDATA (MAY 1, 2014", 1 MAY 2014', 30)
      INSERT INTO VALUES SAMPLEDATA (JUNE 1, 2014 ", 1 JUNE 2014", 70)
      INSERT INTO VALUES SAMPLEDATA (JULY 1, 2014 ", 1 JULY 2014", 20)
      Desired results set:
      Snapshot_M Date_Ky F_Quantities
      10 1/1/2014-2/1/2014
      10 1/1/2014-3/1/2014
      01/01/2014 41 10/2014
      4/1/2014 5/1/2014 23
      4/1/2014 6/1/2014 23
      4/1/2014 7/1/2014 23

      My requirement is to load the data in the cube.

      So to summarize, data that are loaded onto the month last only a quarter Q1 tax (Jan) should server as a data for the quarter Q2 next month (February, March, April), the data loaded on the last month of Q2 (Apr) will be server as forecast data for Q3 months and so on.

      Thank you in advance.



    with

    SAMPLEDATA as

    (select to_date('09/1/2014','mm/dd/yyyy') snapshot_m, to_date('09/01/2014','mm/dd/yyyy') date_ky, 14 f_quantities of all the double union)

    Select to_date (October 1, 2014 "," mm/dd/yyyy ""), to_date (1 October 2014 "," mm/dd/yyyy"), 13 union double all the

    Select to_date (November 1, 2013 "," mm/dd/yyyy ""), to_date (1 November 2013 "," mm/dd/yyyy"), 12 union double all the

    Select to_date (December 1, 2013 "," mm/dd/yyyy ""), to_date (1 December 2013 "," mm/dd/yyyy"), 11 union double all the

    Select to_date (January 1, 2014 "," mm/dd/yyyy ""), to_date (1 January 2014 "," mm/dd/yyyy"), 10 of all the double union

    Select to_date (February 1, 2014 "," mm/dd/yyyy ""), to_date (1st February 2014 "," mm/dd/yyyy"), 90 union double all the

    Select to_date (March 1, 2014 "," mm/dd/yyyy ""), to_date (1 March 2014 "," mm/dd/yyyy"), 20 union double all the

    Select to_date (April 1, 2014 "," mm/dd/yyyy ""), to_date (1 April 2014 "," mm/dd/yyyy"), 23 union double all the

    Select to_date (May 1, 2014 "," mm/dd/yyyy ""), to_date (1 may 2014 "," mm/dd/yyyy"), 30 union double all the

    Select to_date (June 1, 2014 "," mm/dd/yyyy ""), to_date (1 June 2014 "," mm/dd/yyyy"), 70 union double all the

    Select to_date (July 1, 2014 "," mm/dd/yyyy ""), to_date (1 July 2014 "," mm/dd/yyyy"), 20 union double all the

    Select to_date (August 1, 2014 "," mm/dd/yyyy ""), to_date (1 August 2014 "," mm/dd/yyyy"), 22 of the double

    )

    Select snapshot_m, date_ky, last_value (f_quantities) ignore nulls on f_quantities (order by date_ky)

    of (trunc (add_months (snapshot_m-1), 'q') select snapshot_m, date_ky,)

    -case when trunc (add_months (snapshot_m-1), 'q')! = lag (trunc (add_months(snapshot_m,-1), 'q')) (date_ky order)

    then lag (f_quantities) (date_ky order)

    end f_quantities

    of sampledata

    where date_ky > = date ' 2014-01-01'

    )

    where snapshot_m > = date ' 2014-01-01'

    order of date_ky

    SNAPSHOT_M DATE_KY F_QUANTITIES
    01/01/2014 01/02/2014 10
    01/01/2014 01/03/2014 10
    01/01/2014 01/04/2014 10
    01/04/2014 01/05/2014 23
    01/04/2014 01/06/2014 23
    01/04/2014 01/07/2014 23
    01/07/2014 01/08/2014 20
    01/07/2014 01/09/2014 20
    01/07/2014 01/10/2014 20

    Concerning

    Etbin

  • How to stop my contact for one year and get refund?, how stop my contact for one year and get refund?

    How stop my contact for one year and get refund?

    Hello

    You will need to contact support by calling/chat for cancellation and refund requests.

    Contact the customer service

    Kind regards

    Sheena

  • Load data for a YEAR in a scenario of periodicals

    Dear,

    I think that it is an easy one, but I want to be 100% sure of what I should expect from HFM.

    Need to load balances for a YEAR in a regular scenario (periodic = default view, zeroview = periodic, consolidate the CDA = no)

    I have to specify the "CDA" string in the file, that I download?

    Periodic data are automatically calculated as the difference between consecutive CDA balances?

    Is there some advise/alert should I consider?

    A big thanks to all the world.

    Yes, you must specify the CDA in the files that you upload.  As a general rule, you want to avoid to load data to a recurring scenario for a YEAR, and vice versa.  In your example, a question if you have loaded data from one YEAR to a flow account and then the amount of your VOE in the month following to zero resulting in your not having data file is not a record for this intersection next month.  For example, if you have loaded $1,000 in January to sell your account but then the amount of the CDA in February is zero (rare but it happens) then you would not have a record of this account data from sale in February so that after loading you expect to see a zero number CDA in HFM.  However, with the zeroview the value of periodic, HFM expects a periodic amount and when you're not busy it assumes that the periodical (not a year) is zero and that it derives from the number of CDA.  In this case, it would show a value of February of the periodical of $0 and $1,000 for a YEAR when you expect $0 CDA and - periodical of $1,000.  Bottom line is that you should take periodic data to a periodic script and vice versa.

  • How to generate the ddl for unlimited quota

    Hi all

    DB: Oracle 9.2.0.4
    OS: Solaris 8

    I have a 12 tablespaces and 18 users of the application.
    I would like to grant an unlimited quota for all users on all areas of storage, to find out how to generate the ddl script.

    ex: change the dataagent user quota unlimited on DSOM.

    can anyone help us.
    Thank you
    KK.

    All users in all areas of storage?

    Select "edit user" | user name | "quota unlimited on | nom_tablespace | ';'
    from dba_users cross join dba_tablespaces
    When not in dba_tablespaces.tablespace_name ('SYSTEM', "SYSAUX");

    Please, be careful with this

    HTH
    Antonio NAVARRO

  • How to submit multiple releases for a single application


    "I just continue to add beams.

    Yes pretty much.  I think it's better terminology, that you submit multiple beams for the 'liberation '.  Beams can be targeted by device and/or the OS level, so it's easy to create a version keyboard and touch screen using non-automatique operation weighing - although I'm not sure whose side the torch fits in!

  • How to create a date for the restoration of the system when there is no previous restore date.

    When you try to create an earlier date for the restoration of my pc (windows 8.1) for the first time (no previous restore point) the only option I get is to create point of restoration of the date and time of today. I need to restore to an earlier date. Does anyone have a solution?

    You can click on the box "Show more restore points" to view the older, but they may not be as reliable (they may fail to apply or they may not actually work).

    If you do not see the box to check, or the oldest, so it is not of the ancients still show.  If this is the case, you will need to use the 'Refresh PC'.

  • How to generate the code for the ZXP file signing certificate

    I'm developing a creative using FlashBuilder 4.6 Adobe extension. I released the extension of a file .zxp and wanted to generate the code for him signing certificate. I've checked all the supported providers Adobe, but not found that anyone can do. Only, they provide the certificate for *.exe * .cab, *.dll and *.ocx.


    Thanks in advance.

    Leon.

    It's all too confusing.

    We use the Comodo certificate. You can use all the others as long as you end up with a point p12 certificate.

    Signing certificate by using the Digital Signature of the code

    http://www.InstantSSL.com/code-signing/index.html

    (1) request you the certificate. I used Internet Explorer on a PC because Comodo says it's better for them.

    (2) they do a thorough credit check to make sure that you are who you claim to be.

    (3) they shall issue a certificate giving you a PIN that he pay back.

    (4) redeem you your PIN certificate and the certificate is in your browser certificate cache.

    (5) you go to the cache and add a personal password for your certificate.

    (6) what makes a dot P12 file file name you choose.

    (7) now you can use your file p12 point with the utilities Adobe XZPSignCmd or ucf.jar to sign your Panel. I use the Mac utilities to sign on a Mac. The point p12 file is good on the PC and Mac.

    Don't worry, the utilities they speak about to sign. Adobe has their own utilities ZXPSignCmd and ucf.jar to do the signature. You are forced to timestamp your signature.

  • RN4220 and the FOURTH all losses of data for TWO years

    Hello team NTGR and customers.

    I want to tell you a failstory.

    Two years ago, I was looking for a BIG SIN store backups of my data from the company.

    I have already had several old Pro RND 6 boxes and selected 4220 x 12 4 hard drives of WD RE CT.

    price was 10 k $ without hard drives.

    only since the beginning, I faced OS6 RND and problems. You can read about it here

    https://community.NETGEAR.com/T5/ReadyNAS-in-business/this-is-not-enterprise-devices-5-months-of-sup...

    (topic has been pruned don't know why).

    and here

    https://community.NETGEAR.com/T5/ReadyNAS-in-business/MPIO-slow-speed/TD-p/964959

    and now I've lost my data once more. the FOURTH TIME! EACH MONTH I LOSE ALL MY DATA.

    slapping admin page and no SMB/iSCSI access to all my 25 TB of data.

    It's lost, complete and 100% lost.

    hate you, NETGEAR.

    do something crazy House and nothing more.

    I obliged thanks NTGR for help - this time was not data loss and only three days spent to solve the problem.

  • How to generate the file for ADF Application using Jenkins CI ear

    JDeveloper: 11.1.2.1.0

    Hi all

    We use the continuous Integrator tool Jenkins to deploy the Source code for the ADF in various environments such as UAT/Prod etc. I have never used Jenkins to build the ear file and got the same basic questions about its use. Can someone with me how to use this tool.

    1. as far as I know, Jenkins supports scripts ant, but what I need to do any thing added in the Jenkins case, in support of controls ojdeploy

    2. all the documents that I can refer to stages of deployment using Jenkins

    3. If I need to deploy it to multiple environments, what I need to make any changes in the Jenkins case or a job is enough and properties file will take care of it

    4. I want Jenkins system to read the code of source code control server (we use p4)

    Thank you

    Delighted Nuka.

    Look for ojdeploy coating in an Ant script, then call your script by Jenkins/Hudson Ant as a recurring task.  This blog previous messages of talks to the technique of ojdeploy-Ant:

    One size does not fit all: using ojdeploy and Ant to create pots of ADF library

    From your point of view development, get the ojdeploy-Ant scripts first work in JDeveloper, then expand to be called by Jenkins/Hudson.  You will need to install JDeveloper on the build server for this to work, so why you may need to adjust the Ant scripts for your construction engine, JDev configuration may be different on your build of your the desktop configuration server (although ideally you should standardize the JDev on your PCs of dev configuration and build server in my humble OPINION).

    CM.

  • How to generate the report for LUNS attached to esx

    Hi I m help esx 3.5 with vc 2.5 u 3 .we use 4 host cluster with 25 LUNs and attached to their creation of vm is very common in our production environment testing. can any body tell me the command or how so I can generate report for each lun attached to the esx like size of lun, used, free... second how vm, I on lun perticulr

    VDF h

    should meet your needs

  • How to copy the data for some members of a dimension to another dimension

    Dear Sir

    I want to copy data ("511102") members of one dimension to another of the combinations of dimensions.

    I have the following combinations for "511102":

    _ _ ("Budget2012", "FY12", "Working.V01", "SAR", "BegBalance", "1011", "G_10", "custom notes")


    I want to copy "511102" to "wages".

    -pay have the following dimensions:

    _ ("Budget2012", "FY12", "Working.V01", "SAR", "BegBalance", "Group of generals", "All the notes", "Employees") _


    I don't know if I could do it by three-dimensional cross datacopy, but I have not HOW > > >


    Thanks in advance

    DIFFICULTY ("Budget2012", "FY12", "Working.V01", "SAR", "BegBalance", "Group of generals", "All the notes", "General Employees")

    "salary" = "511102"-> "1011"-> 'G_10'-> 'custom notes ';

    ENDFIX

    or

    Fix ("Budget2012", "FY12", "Working.v01", "SAR", "BegBalance")

    DATACOPY '511102'-> '1011'-> 'G_10'-> 'custom notes' to 'pay'-> 'general group'-> "all the classes"-> "General Employees;

    ENDFIX

    Datacopy largely consists in placing the dimensions in the dimension in the same order. The two sides (before and after 'TO') should have an equal number of members of the specified dimension.
    See you soon,.
    Alp

  • Web service data control - how to use the data for the axis2 service manager

    Hello

    I have the following questions:
    I consume a Web service using the web service based on axis2, MTOM data. The webservice response returns a complex response object.

    1. How can I link the (type axis2 DataHandler object) the response content to be stored in a column of data?
    2. in the response object, the name of the file is stored in a hash table structure, how can I retrieve the value of a specific key only? In an ideal world, it's a no-brainer, in ADF(newbie here) I do not know how to extract it?
    3. in addition, the display of collectibles for a response from webservice with a radio button beside each line?

    Any help is greatly appreciated.

    Thank you
    J

    Published by: 843190 on March 22, 2011 18:16

    Published by: 843190 on March 22, 2011 18:20

    Is the part of the information that you want to display available as a separate attribute in the results of the Web service in the data control panel?
    If not, and you do a manipulation of the result to retrieve content, you can consider creating a Java proxy for the Web service, in that proxy to expose a method that gives you the news you need and then expose the proxy as a data control. Then, you can call the specific method to get the specific information in the format you need.

Maybe you are looking for