Calculate date 1800's

Dear Appleworks geniuses,
I'm trying to calculate time elapsed between dates in the 1800's for a historical project, but totally frustrated that Microsoft Excel can't handle dates earlier than 1900. Before investing $79. to buy Appleworks can anyone tell me if Appleworks can handle dates in the 1800's? Thanks in advance for your help.
Powerbook G4   Mac OS X (10.4.7)  

I was having a similar problem, though I wasn't doing calculations, and I thought this would be the best thread to include the solution I found.
I was entering dates using the 1/1/07 format, but found that they did not sort correctly. After much frustration, I finally realized that the input data MUST include all four digits of the year, i.e. "2007," or else the numbers will be entered as text. Evidently, AW does not recognize the entry "1/1/07" as Jan 1st, 2007, but DOES recognize "1/1/2007" as Jan 1st, 2007.
That said, how did I fix all of my incorrectly entered dates without retyping the entire list? 1) Selected all cells and sorted by the dates to identify which were correctly entered and which were not. 2) My calendar dates included 2008 and 2007 dates, so using the Edit>Find/Change [command-f] command, I first searched for "08" and replaced with "2008." 3) Then I searched for "07" and replaced with "2007."
It is important to note that I did NOT "change all," as I had some other entries that contained (correctly) the text "07" and "08," and the cells that were already correctly formatted would be incorrectly changed to 202007. Using the Find Next, then the Replace, Find Next button, I was able to make about 250 changes quite quickly. I hope this helps someone.

Similar Messages

  • FM to calculate date month & year six months previous to the current date

    Hi All,
    Is there any function module or code to calculate date month & year six months previous to the current date.
    Thanks in advance.

    hi,
    try this
      data : date1 like vbak-erdat.
    data : q type numc3.
    selection-screen : begin of block blk2 with frame title text-001.
    parameters : n like q.
    selection-screen : end of block blk2.
    if n > 0.
    CALL FUNCTION 'CCM_GO_BACK_MONTHS'
             EXPORTING
               CURRDATE         = sy-datum
               BACKMONTHS       = n
           IMPORTING
              NEWDATE          = date1
    selection-screen: begin of block blk1 with frame title text-001.
    select-options :  s_date for vbak-erdat default 'NEWDATE'  to 'sy-datum' no-display.
    selection-screen : end of block blk1.
    write : date1.
    Reward with points if helpful.

  • Calculate Data Form - Business Rule

    I am a little confused on how the default "Calculate Data Form" business rule works which is available when we create a new data form.
    When run, does it calculate the entire cube as in it works like - CALC ALL; ? Or does it just calculate the dimensions/members specific to the form. I always thought that it is specific calculation for the data form - which considers the selection that we have in our POV, Page and rows and columns and it doesn't calculate the entire cube. Please correct me if I am wrong.
    If anyone has any resourse that has more about it, please share the link or information. It will be a big help.
    Please let me know.
    Thank you!
    ~ Adella

    Thank you so much John for responding to my question.
    So, if I understood it right you were telling me that it doesn't calculate the entire database, but it only calculates the subtotals for those specific member combinations that are there on the dataform and displays it on the form after the business rule is launched. Hope now I understood it right.
    Actually, I am running into an issue where I am just changing two cells on my dataform, then running the "Calculate Data Form" to see the totals changing accordingly but it is taking way too long than expected and also it is not rendering the right result. I am not sure what is causing this delay if it were only to calculate things specific to the data form and show the results.

  • How to calculate Date and Days

    Hi BW Experts,
    I have requirement, I have field original GI Date and  it is calculating based on 'Original promise date'-'Transport time'. Formula is 'Original GI Date' = 'Original promise date'-'Transport time'.
    We are getting data for original promise date as Date format and  Transport time as Days (ex: 1 or 2 days).
    Here, how can I convert into Date or how can I calculate Date and Days. I am working on BW3.5 .
    Please help me how can I overcome this requirement.
    Points will be assign.
    regards
    Yedu.

    Hi Ventatesh
    It's not a problem
    You can subtract days from date to get the resultant date
    Original Promise time  =  GI Date  - Transit time ( in days)
    Add Original Promise Time in your data target and fill that up with the above rule.
    If the above is not working you can use this function module
    DATE_IN_FUTURE
    Here you need to pass Date and Days to get future date. Only trick you need to apply that if the transit days is 5 days, you pass -5 to this function module.
    But this function module is not available in BW system. Just copy the code from ECC system and create a Z FM for BW system
    Regards
    Anindya
    Edited by: Anindya Bose on Feb 9, 2012 4:36 AM

  • Calculate Data Forms

    Greetings,
    I'm testing a data form with the default setting "calculate data forms" setting turned on and the same data form with it turned off. There is a significant difference in save time when the default setting is not included. I looked up the definition of what "calculate data forms" is doing, to calculate subtotals, but my data form does not have any subtotals that have been programmed into it, but does pull on dynamic calc members. Does anyone have an idea why there would be a difference, in some forms it is taking 10x longer. Not sure if this setting should ever be used in this scenario.
    Thanks!
    Joe

    Joe,
    I have never seen a "professional" Hyperion developer leave this feature on. Why would you let Planning try to figure out what needs to be calculated and then let it dynamically build a script under the covers? If your sub-totals are being calculated dynamically, then there's no need to use this feature. If they aren't, build a focused business rule and associate it with the save of the form. That way, you know exactly what is being calculated and how.
    It's a bit like using CALC ALL. The feature is there . . . but in my opinion, it's a crutch for inexperienced resources.
    Hope this helps,
    - Jake

  • FM to calculate date.

    Dear All,
    Pl tell me function module to calculate date after given period. Suppose I am giving
    input as DATE = 22.06.2007
    and period ( or years) = 5
    then i shud get output as 22.06.2012.
    Thanks in Advance.
    Rushikesh

    Hi Kotwal,
    You can also use below function module.
       J_1H_CAL_DATE_IN_INTERVAL     
      Import parameters               Value           
      DATE                            01/01/2007      
      DAYS                            00              
      MONTHS                          00              
      SIGNUM                          +               
      YEARS                           10                                                                               
    Export parameters               Value           
      CALC_DATE                       01/01/2017      
    If its not resolved your problem means you can also try for below list of function modules.
    NET_DUE_DATE_GET
    I_ZFBDT                         01/01/2006        
    I_ZBD1T                          1                
    I_ZBD2T                          2                
    I_ZBD3T                         10                
    I_SHKZG                         X                 
    I_REBZG                         01/01/2007        
    I_KOART                         D                                                                               
    Export parameters               Value             
    E_FAEDT                         01/11/2006        
    Or
    INCL_DATE_CHANGE  
    I_DATUM                         01/01/2007   
    I_KZ_INCL                       10           
    I_KZ_ULT                        X                     
    Please check the function module by passsing test values

  • Calculate Dates for Last week and next three weeks

    Hi,
    I have a report where I need to calculate dates between last week and the next three weeks (not counting current week). I'm familar with the first part, it could be done by using the LastFullweek function but not sure how I can avoid the current week and calculate the next three weeks.
    Any help is greatly appreciated.
    Thanks!

    ... and here are a few more...
    Last Week...
    IF {TableName.Date} IN
    DateAdd("ww", DateDiff("ww", #1/7/1900#, CurrentDate), #1/7/1900#)
    To
    DateAdd("ww", DateDiff("ww", #1/7/1900#, CurrentDate) -1, #1/7/1900#)
    THEN TRUE ELSE FALSE
    The week before...
    IF {TableName.Date} IN
    DateAdd("ww", DateDiff("ww", #1/7/1900#, CurrentDate) -1, #1/7/1900#)
    To
    DateAdd("ww", DateDiff("ww", #1/7/1900#, CurrentDate) -2, #1/7/1900#)
    THEN TRUE ELSE FALSE
    And the week before that...
    IF {TableName.Date} IN
    DateAdd("ww", DateDiff("ww", #1/7/1900#, CurrentDate) -2, #1/7/1900#)
    To
    DateAdd("ww", DateDiff("ww", #1/7/1900#, CurrentDate) -3, #1/7/1900#)
    THEN TRUE ELSE FALSE
    and of course all 3 weeks together...
    IF {TableName.Date} IN
    DateAdd("ww", DateDiff("ww", #1/7/1900#, CurrentDate), #1/7/1900#)
    To
    DateAdd("ww", DateDiff("ww", #1/7/1900#, CurrentDate) -3, #1/7/1900#)
    THEN TRUE ELSE FALSE
    If you want the 1st day of the week to be Monday instead of Sunday just change the date of #1/7/190# to #1/1/1900#
    HTH,
    Jason

  • Website page with jquery datepicker does not calculate dates while other pages without datepicker and all other browsers do their job

    I wrote two mobile pages with dreamweaver cs5.5 and jquery. Both do online calculations. Both appear and accept input. One page using jquery datepicker does not calculate. Solely in Firefox. IE9, Safari, Chrome display correct results. Debuggers show no error. Firebug seems telling me that Firefox does not get a result from datepicker function.

    Thanks. But did not help. I had done this several times before, reload, clear cache, disable extensions etc. Always used standard theme. I tried the same on two different machines, with next to last version and after having installed the latest version. In the debugger I can see that variables "zeit1" (jquery datepicker) were not filled with the datepicking results, while in all other browsers zeitX shows the current date and the app shows the results that are expected. Given that another comparable app - only without date and datepicker functions - works in Firefox I think one should explore why solely datepicker - or the function using datepicker - does not show results solely in Firefox on desktop (no mobile device with Firefox on hand) . I indeed believe that there is a mistake in my code which is detected only by Firefox (10.0.2 at the present time, with Win7 64bit - had the problem with 3.6... on another machine). Given that you could run the app with results on your machine: could it be the context of locale/culture (here: de)?
    Kind regards

  • Calculate date difference between overlapping periods

    hello folks,
    i am learning my way into more complex problem of java.
    i have to calculate the true period lenght for a set of periods.
    it is a little complidated to explain the whole business rules on this subject, but on a nutshell:
    we have teams that are give a single day payment for staying in a hotel, but since this team is composed of many people (?this is a team); there are days when more then one person stays in a hotel.
    we get these details at the end of a business event when all information is entered on our business intelligence system.
    for a given hotel stay, the following details are submitted:
    start date
    end date
    number of days in economic accomodation (lower class)
    number of days in luxure accomodation (higher class)
    if no number of days in any class, or the number is smaller then lower class is assumed to be the one used
    another business rule says that for the first night out (away from their home) staff receives an extra night for their transfer (!generous company!)
    i have created a class for holding all this information so far - HotelStay.java
    since this is a team information for a given business event i receive anything between 0 to 200 hotel stays.
    thus my dataset looks like
    teamID
    hotelStayStartDt
    hotelStayEndDt
    daysInLowerClass
    daysInHigherClass
    my objective are:
    to be able to calculate the actual number of stays (including any additions for the first day away)
    to be able to calculate number of total days - including over laps - these will be paid in a different rate)
    number of days in each hotel class - lower and higher
    since i am clueless how to go about it, i would really appreciate assistance here.
    below is my HotelStay.java
    many thanks,
    Nic

    here is the class that i have created so far
    package businessCalculations.awayStays;
    import java.text.ParseException;
    import java.text.SimpleDateFormat;
    import java.util.Calendar;
    import java.util.Date;
    import java.util.GregorianCalendar;
    import com.sun.org.apache.xalan.internal.xsltc.trax.SmartTransformerFactoryImpl;
    import com.sun.xml.internal.bind.v2.runtime.reflect.Accessor.SetterOnlyReflection;
    * @author
    public class HotelStay {
         * hotel starting date of stay hotel stays can only start in the past or
         * today as this is not processing future bookings only dates over and above
         * 1990 are considered into this system
        private Date hotelStayStartDt;
         * hotel date end of staying only dates over and above 1990 are considered
         * into this system
        private Date hotelStayEndDt;
         * days for which a person stayed in economic or other lower class
         * accommodation
        private int daysInLowerClass = 0;
         * days for which a person stayed in de-luxe or other higher class
         * accommodation
        private int daysInHigherClass = 0;
         * flags when person was sleeping in another hotel at the beginning of this
         * stay (they went from one hotel to another without going home in betwee
         * if they were they do not receive the added day bonus for transfer
         * (one overnight stay <b>EXTRA</b>) thus if at the beginning of the stay,
         * they were not sleeping in another hotel, they receive an extra night for
         * their transfer
        private boolean isSleepingAwayOverlapping = false;
         * default constructor
         * @param hotelStayStartDt
         * @param hotelStayEndDt
         * @param daysInLowerClass
         * @param daysInHigherClass
        public HotelStay(Date hotelStayStartDt, Date hotelStayEndDt,
             int daysInLowerClass, int daysInHigherClass) {
         boolean outcome = this.addNewHotelStay(hotelStayStartDt, hotelStayEndDt, daysInLowerClass, daysInHigherClass);
         * @param hotelStayStartDt
         * @param hotelStayEndDt
         * @param daysInLowerClass
         * @param daysInHigherClass
         * @return
        public boolean addNewHotelStay(Date hotelStayStartDt, Date hotelStayEndDt, int daysInLowerClass, int daysInHigherClass) {
         if (this.isValidStayDt(hotelStayStartDt) && this.isValidStayDt(hotelStayEndDt)){
             int lengthOfStay = this.getLengthOfStay(hotelStayStartDt, hotelStayEndDt);
             if(lengthOfStay >=1) {
             this.setHotelStayStartDt(hotelStayStartDt);
             this.setHotelStayEndDt(hotelStayEndDt);
             if (
                  (daysInHigherClass + daysInLowerClass == 0)
              ||  (daysInHigherClass + daysInLowerClass <= lengthOfStay + 1 )
              this.setDaysInLowerClass(daysInLowerClass);
              this.setDaysInHigherClass(daysInHigherClass);
             } else {
              this.setDaysInLowerClass(daysInLowerClass);
              this.setDaysInHigherClass(daysInHigherClass);
             return true;
         }else{
             return false;
         * @return the admissionDt
        private Date getHotelStayStartDt() {
         return this.hotelStayStartDt;
         * @param admissionDt
         *            the admissionDt to set
        private void setHotelStayStartDt(Date admissionDt) {
         this.hotelStayStartDt = admissionDt;
         * @return the dischargeDt
        private Date getHotelStayEndDt() {
         return this.hotelStayEndDt;
         * @param dischargeDt
         *            the dischargeDt to set
        private void setHotelStayEndDt(Date dischargeDt) {
         this.hotelStayEndDt = dischargeDt;
         * @return the isOverlappingOtherCcStays
        private boolean isOverlappingOtherCcStays() {
         return this.isSleepingAwayOverlapping;
         * @param isOverlappingOtherCcStays
         *            the isOverlappingOtherCcStays to set
        private void setOverlappingOtherCcStays(boolean isOverlappingOtherCcStays) {
         this.isSleepingAwayOverlapping = isOverlappingOtherCcStays;
         * @return the daysInLowerClass
        private int getDaysInLowerClass() {
         return this.daysInLowerClass;
         * @param daysInLowerClass
         *            the daysInLowerClass to set
        private void setDaysInLowerClass(int daysInLowerClass) {
         this.daysInLowerClass = daysInLowerClass;
         * @return the daysInHigherClass
        private int getDaysInHigherClass() {
         return this.daysInHigherClass;
         * @param daysInHigherClass
         *            the daysInHigherClass to set
        private void setDaysInHigherClass(int daysInHigherClass) {
         this.daysInHigherClass = daysInHigherClass;
         * @return the isSleepingAwayOverlapping
        private boolean isSleepingAwayOverlapping() {
         return this.isSleepingAwayOverlapping;
         * @param isSleepingAwayOverlapping
         *            the isSleepingAwayOverlapping to set
        private void setSleepingAwayOverlapping(boolean isSleepingAwayOverlapping) {
         this.isSleepingAwayOverlapping = isSleepingAwayOverlapping;
        @Override
        public String toString() {
         String rtn = "";
         SimpleDateFormat sdf = new SimpleDateFormat("dd/MMM/yyyy hh:mm");
         String inDt = sdf.format(getHotelStayStartDt());
         String outDt = sdf.format(getHotelStayEndDt());
         rtn = "ArrivalDt("
             + (inDt.isEmpty() ? "" : inDt) + ")\t,BookOutDt("
              + (outDt.isEmpty() ? "" : outDt) + ")\t,DaysInLowerClass ("
              + String.valueOf(getDaysInLowerClass())
              + ")\t,DaysInHigerClass ("
              + String.valueOf(getDaysInHigherClass()) + ")";
         return rtn;
        public int getLengthOfStay(Date hotelStayStartDt, Date hotelStayEndDt ){
         Calendar startDt = new GregorianCalendar();
         startDt.setTime(hotelStayStartDt);
         Calendar endDt = new GregorianCalendar();
         endDt.setTime(hotelStayEndDt);
         long startMill = startDt.getTimeInMillis();
         long endMill = endDt.getTimeInMillis();
         // Calculate difference in days
         // divided by (24 hours, 60 minutes, 60 seconds, 1000 milliseconds
         // casted as (int)
         return (int) ((endMill - startMill) / (24 * 60 * 60 * 1000));
        private boolean isValidStayDt(Date aDate) {
         SimpleDateFormat sdf = new SimpleDateFormat("dd/MMM/yyyy");
         Calendar minDt = new GregorianCalendar();
         Calendar maxDt = new GregorianCalendar();
         maxDt.add(Calendar.DATE, +1);
         try {
             minDt.setTime(sdf.parse("01/jan/1990"));
         } catch (ParseException e) {
             e.printStackTrace();
         if (aDate.after(minDt.getTime()) && aDate.before(maxDt.getTime())) {
             return true;
         } else {
             return false;
    }Edited by: www.jegue.net on Jul 17, 2010 11:31 AM

  • Trying to calculate value based on rounding up and then calculate date range excluding weekends..

    Hi
    I am creating a simple design studion project request form where the user can enter how many photographs need to be ordered. I am calling this field 'NumImages'. Then once the data is entered, another field (I am calling this NumDaysImage) will be calculated based on the fact that no more than 5 photographs can be shot per day. So, 1-5  photos = 1 day. 6-10 photos = 2 days. 11-15 photos = 3 days etc. I do not need to calculate part days, so 6 photos is the same as 10 i.e. 2 days.
    Once I have calcuated 'NumDaysImage', I then need to calculate an end date called 'DateDue'. The start date is entered by the user in the field 'DateStart'.
    I know this is not going to be easy, but how can I calculate 'DateDue' based on a Mon-Fri working week, and ideally excluding UK public holidays?
    Also on the form is a value 'NumDays' that is the number of days for designing the brochure for the photos. This value I have calculated already, but it will need to be added to 'NumDaysImage' to get a total number of production days that is then used to calculate 'DateDue'.
    Any help will be greatly appreciated. Thanks.

    JavaScript has the Math.ceil method which rounds up a number to the next integer if it is not an integer.
    Dates are more complicated calculation as the starting date needs to be converted to a number and then one can calculate the ending date and test that date to see if is a Sunday or Saturday. Do intervening weekends add to the number of days for processing.

  • Function module to calculate date in future

    Hi,
    I am looking for a function module in SAP CRM 2007 that calculates and returns date 'n' days in future of the entered date. This is like the DATE_IN_FUTURE function modules present in SAP.
    Please let me know if any one has come across such FM.
    Regards,
    Saumya

    Thanks for the replies.
    The issue has been resolved.
    We can directly add the number of days in future to be calculated in the current date. In SAP, it directly converts number to date type and calculated date in future.

  • Calculate date for a week ago

    Part of an assignment I have is to delete logs that are a week or more older. How can I calculate the day to be 7 days ago from the current? Ive been looking at the Calendar's static properties, but I'm not if subtracting 7 from them would work.
    Thanks

    Cant say ive actually tried it while running the program, more or less been reading through the docs.
    public void checkForOldLogs() {
         Calendar rightNow = Calendar.getInstance();
         int weekago = rightNow.get(Calendar.DATE - 7);
    }Is what I was thinking, but im not sure if itll roll over month wise or not.
    EDIT: That doesnt work, as I did a println for the weekago, get an out of bounds exception.
    My log files are in the format of useridyyyymmdd.LOG
    the userid is ALWAYS 8 characters long, so I could do a search for files with the userid that have an older date of that format than the current one by a week.
    Code for generating the String for the filename:
    public void setCurrentDate() {
         Calendar rightNow = Calendar.getInstance();
         String year = Integer.toString(rightNow.get(Calendar.YEAR));
         String month = Integer.toString(rightNow.get(Calendar.MONTH) + 1);
         String day = Integer.toString(rightNow.get(Calendar.DAY_OF_MONTH));
         if(month.length() == 1) {
              month = "0" + month;
         if(day.length() == 1) {
              day = "0" + day;
         dateString = year + month + day;
    }Edited by: agm_ultimatex on Jul 1, 2009 7:09 PM

  • HELP!! Can't calculate date fields

    I have a cript that calculates between 2 date fields.
    They have a date format of: DDMMYYYY
    In an other form with a different date format it works, but here it doesn't
    What am i doeing wrong?
    var dateOfPensioen = formulier1.Formulier.Vraag2.RetirementDate.Date2.rawValue;
    var dateOfChange = formulier1.Formulier.Vraag1.Date.Antwoord4.rawValue
    var Horizon = 0;
    if (dateOfPensioen != "" && dateOfChange != "")     {
    var datePensioen = util.scand("yyyy-mm-dd hh:mm", (dateOfPensioen + " 0:00"));
    var datePeil = util.scand("yyyy-mm-dd hh:mm", (dateOfChange + " 0:00"));
    if (datePensioen != null && datePeil != null)
    // calculate horizon in months
    var calcHorizon = ((datePensioen.getFullYear()-datePeil.getFullYear()) * 12 + (datePensioen.getMonth() - datePeil.getMonth()) - Math.max(0,Math.min(1,(datePeil.getDate()-datePensioen.getDate())))) / 12;
    var Horizon = calcHorizon.toString();               }
    I'm keep getting an error: util not defined

    Logic for date range overlap testing only requires two conditions in the WHERE clause:
    ORACLE-BASE - Overlapping Date Ranges
    WHERE S.STARTDT <= :ENDDT AND S.ENDDT >= :STARTDT -- TRUE for ranges that overlap
    It looks a little odd, but, if you scribble out a 'logic table', it makes sense.
    Condition
    A.start <= B.end
    A.end >= B.start
    A__A B--B
    true
    false
    A__B=A--B
    true
    true
    A__B==B__A
    true
    true
    B--A==B__A
    true
    true
    B--B A__A
    false
    true
    MK

  • Calculate Date from Hours

    Is there a standard SAP function module that calculates a date using a specific number of hours?
    For example:
    The expected GR date is 4 days and 11 hours from the PGI date.  So we would like to use the functionality to add 107 hours to the PGI date to recieve the Expected GR date.
    thanks,
    brian

    Hi brian,
    1. The logic is simple.
    2. For this purpose,  i have an independent
       subroutine - FORM,
       in which we pass the hours,
       and we get back days, and hours.
      107 hours = 4 days , 11 hours
    3. just copy paste in new program
    4.
    report abc.
    DATA : DAYS TYPE I.
    DATA : HRS TYPE I.
    parameters : h type i DEFAULT '107'.
    perform getfigure using H CHANGING DAYS HRS.
    WRITE : DAYS , HRS.
    FORM
    form getfigure using phours changing days hrs.
      DATA : MYDAYS TYPE P DECIMALS 2.
      MYdays = phours / 24.
      DAYS = TRUNC( MYDAYS ).
      hrs = phours mod 24.
    endform.
    regards,
    amit m.

  • Week End Date calculates dates in table issues

    Greetings All,
    I'm working on a LiveCycle Designer ES4 document that has a Week Ending Date MM-DD-YYYY (which need to always be a Saturday) selected in a subform.
    I need this Week End Date to then calculate and display the selected Saturday and the previous days in a seperate subform with a table. The days need to display in seperate columns below the header.
    This is what I have so far:
      TopmostSubform.Page1.Requestor.WeekEndDate::exit - (FormCalc, client)
    var endDate = Date2Num($,"MM-DD-YYYY")
    var dayOfWeek = Num2Date(endDate, "E")
    if (dayOfWeek <> 7) then
       xfa.host.messageBox("Ending date must be a Saturday")
       $ = null
       xfa.host.setFocus("$")
    endif
    Page1.#subform[1].InputTable.Row1[0].Date7 = Num2Date(endDate - 0, "DD")
    Page1.#subform[1].InputTable.Row1[0].Date6 = Num2Date(endDate - 1, "DD")
    Page1.#subform[1].InputTable.Row1[0].Date5 = Num2Date(endDate - 2, "DD")
    Page1.#subform[1].InputTable.Row1[0].Date4 = Num2Date(endDate - 3, "DD")
    Page1.#subform[1].InputTable.Row1[0].Date3 = Num2Date(endDate - 4, "DD")
    Page1.#subform[1].InputTable.Row1[0].Date2 = Num2Date(endDate - 5, "DD")
    Page1.#subform[1].InputTable.Row1[0].Date1 = Num2Date(endDate - 6, "DD")
    However I keep getting an error on the WeekEndDate when selecting a Saturday.
    Does anyone have any idea what I'm doing wrong?
    Thank you for any help!
    -Michelle

    Well, I never got an answer from the forum here, but to help out others - here is what I did:
    This was all done in FormCalc.
    The object WeekEndDate Date/Time Field has a set pattern date{MM/DD/YYYY} in the Object Field Pattern in LiveCycle.
    BUT, the Scripting required the pattern to be YYYY-MM-DD
    Why? I have no flipping clue. It won't work any other way for me.
    Also this item requires a Saturday Date to be chosen. Days of the week are designated by numbers (Sunday = 1, Monday = 2, etc.)
    The line <>7 means that if the day is not Saturday (7) then the error message "Ending date must be a Saturday" will appear.
    This is the Exit event Script:
    TopmostSubform.Page1.Requestor.WeekEndDate::exit- (FormCalc, client)
    var endDate = Date2Num($,"YYYY-MM-DD")
    var dayOfWeek = Num2Date(endDate, "E")
    if (dayOfWeek <> 7) then
         xfa.host.messageBox("Ending date must be a Saturday")
         $ = null
         xfa.host.setFocus("$")
    endif
    The individual Date cells are set to a Date/Time Field with no pattern set in the Object Field Pattern in LiveCycle.
    The coding below designates a MM/DD pattern.
    Each individual field has it's own scripting, with the appropriate minus calculation  - #
    This is the Calculate script for the Sunday cell:
    TopmostSubform.Page1.#subform[1].InputTable.Row1[0].Date1::calculate - (FormCalc, client)
    var dateNum = date2num(TopmostSubform.Page1.Requestor.WeekEndDate.formattedValue,"MM/DD/YYYY") - 6
    $.rawValue = num2date(dateNum,"MM/DD")
    And the Saturday cell, that needed to display the Saturday End Date has the following Script, with NO minus number:
    TopmostSubform.Page1.#subform[1].InputTable.Row1[0].Date7::calculate - (FormCalc, client)
    var dateNum = date2num(TopmostSubform.Page1.Requestor.WeekEndDate.formattedValue,"MM/DD/YYYY")
    $.rawValue = num2date(dateNum,"MM/DD")
    Why did I include this all here?
    Because this whole project has been gawd-awful, and hopefully these insights can help another struggle forms designer understand the FormCalc scripting used.
    -M

Maybe you are looking for