Group by month of the date
I need to generate a report based on the month of a date field.its look like
month arrived patients
May 100
june 129
July 154
How can i write the group by select command on the field of a date. Kindly help me.
SQL> create table mytable (arrival_date,patient)
2 as
3 select date '2007-05-10', 'Bob' from dual union all
4 select date '2007-06-05', 'Mary' from dual union all
5 select date '2007-06-20', 'Phil' from dual union all
6 select date '2007-06-25', 'George' from dual union all
7 select date '2007-07-10', 'Sue' from dual union all
8 select date '2007-07-15', 'Mike' from dual
9 /
Tabel is aangemaakt.
SQL> select trunc(arrival_date,'mm') month
2 , count(*) arrived_patients
3 from mytable
4 group by trunc(arrival_date,'mm')
5 /
MONTH ARRIVED_PATIENTS
01-05-2007 00:00:00 1
01-06-2007 00:00:00 3
01-07-2007 00:00:00 2
3 rijen zijn geselecteerd.or formatting the first column:
SQL> select to_char(trunc(arrival_date,'mm'),'month','nls_date_language=american') month
2 , count(*) arrived_patients
3 from mytable
4 group by trunc(arrival_date,'mm')
5 /
MONTH ARRIVED_PATIENTS
may 1
june 3
july 2
3 rijen zijn geselecteerd.Regards,
Rob.
Similar Messages
-
URL in lieu PH consumed within 3 months from the date of PH
Hi friends
I achieved Unrecorded leave in lieu of PH,through writing PCR but i am having another doubt..This URL in lieu of PH has to be consumed within 3 months from the date of public holiday,how to achieve this??any suggestions from u friends???
Thanks&best regds
ShailaI have asked a moderator to provide assistance, they will post an invite on this thread.
They are the only BT employees on this forum, and are a UK based team of people, who take personal ownership of your problem.
Once you get a reply, make sure that you are logged into the forum, then click on their name, you will see a screen like this. Click on the link as shown below.
Please do not send them a personal message, as they cannot deal with service issues that way.
For your own security, do not post any personal details, on this forum. That includes any tracking number you are give.
They will respond either by phone or e-mail, when its your turn in the queue.
Please use the tracked e-mail, to reply, not via the forum. Thanks
This is the form you should see when you click on the link. If you do not see this form, then you have selected the wrong link.
When you submit the form, you will receive an enquiry number, so please keep a note of it
There are some useful help pages here, for BT Broadband customers only, on my personal website.
BT Broadband customers - help with broadband, WiFi, networking, e-mail and phones. -
Function module for adding number of months to the date
Hi,
Is there any function module to get the date by adding number of months...
Regards,
YadagiriNormally all SAP FM will return that value. As 1 month in general means 30 days only.
You can check the code in this link for logig of 31 -
add month in the date to find next date
Regards,
Amit -
Can't change the month in the Date & Time preference pane
I can't change the month in the Date & Time preferences pane. I deselected "Set Date and Time Automatically" but that didn's solve the problem. I would like to trash the preference (plist) for Date and Time but I can't seem to find it. What is it called?
In the International Formats, the date format is as I have it set, (YYYY.MM.DD) But the MM is neither blue, nor accessible for change. The year can be changed (YYYY or YY), along with several options for the day, but I can't change the month to a different format unless I change the calendar from Gregorian, or if I change from the short date to med, long or full. Although, even then, iCal and Date and Time only show the month as 1, regardless of what it should be, and without any capacity for changing it.
Thanks -
Group by month/year from DATE FORMAT column
Hi Chaps,
I have a recordset that pulls data from a database, then presents the data in a table. The data is grouped by 'projid', repeated for every 'projid', with a show/hide control, to show all the 'jobid's' relating to that particular 'projid'
This is what I have so far:
Code:
SELECT
tbl_projects.projid,
tbl_projects.projtitle,
tbl_projects.projdue, DATE_FORMAT(tbl_projects.projdue, '%%d/%%m/%%Y') as projdue_format,
tbl_projects.projtype,
tbl_projects.projinvtype,
tbl_projects.FK_custid,
tbl_projects.projcompletedate
tbl_languaget.langtname,
tbl_doctype.doctypename,
tbl_jobs.jobid,
tbl_jobs.FK_projid,
tbl_jobs.jobname,
tbl_jobs.FK_langid,
tbl_jobs.jobpages,
tbl_jobs.jobshipped,
tbl_jobs.jobinvsent,
tbl_jobs.jobtranslatorcharge,
'tbl_jobs' as fromtable,
tbl_customers.custid,
FROM tbl_projects
INNER JOIN tbl_jobs
ON tbl_projects.projid=tbl_jobs.FK_projid
INNER JOIN tbl_languaget
ON tbl_languaget.langtid=tbl_jobs.FK_langid
INNER JOIN tbl_customers
ON tbl_customers.custid=tbl_projects.FK_custid
INNER JOIN tbl_costs
ON tbl_costs.FK_custid=tbl_customers.custid
INNER JOIN tbl_doctype
ON tbl_doctype.doctypeid=tbl_jobs.FK_doctypeid
WHERE tbl_projects.projstatus='Complete'
AND tbl_projects.projinvtype='Costing Sheet'
AND langtname!='TH'
AND langtname!='ID'
AND langtname!='KO'
AND langtname!='JP'
AND jobinvsent='y'
AND FK_custid = %s
ORDER BY projid ASC", GetSQLValueString($colname_rsInvPending, "int");
$rsInvPending = mysql_query($query_rsInvPending, $conndb2) or die(mysql_error());
//$row_rsInvPending = mysql_fetch_assoc($rsInvPending);
$totalRows_rsInvPending = mysql_num_rows($rsInvPending);
Code:
// REPEAT - FOR EVERY PROJECT
<?php
$previousProject = '';
if ($totalRows_rsInvPending > 0) {
// Show if recordset not empty
while ($row_rsInvPending = mysql_fetch_assoc($rsInvPending)) {
if ($previousProject != $row_rsInvPending['projid']) {
// for every Project, show the Project ID
?>
Code:
// SHOW/HIDE CONTROL
<tr>
<td colspan="9" class="highlight"><span class="blueBold"><a href="#" onclick="toggle2('proj1<?php echo $row_rsInvPending['projid'] ?>', this)"><img src="../../Images/plus.gif" border="0" /></a> <?php echo $row_rsInvPending['projid'] ?> - </a></span><span class="blueNOTBold"><em><?php echo $row_rsInvPending['projtitle'] ?></em></span></td>
</tr>
Code:
// SHOW/HIDE
<?php $previousProject = $row_rsInvPending['projid']; } ?>
<tr class="proj1<?php echo $row_rsInvPending['projid'] ?>" style="display:none">
<td>column 1</td>
<td>column 2</td>
What I want, is to put in another grouped by stage, where the 'projid's' themselves are in a show/hide region, grouped by 'projcompletedate' (year/month). 'projcompletedate' is in DATE format, but how to I get PHP/SQL to take the month and year and then group them correctly?Hi David, I'm not sure if I've got this right, would you mind looking at my latest code?:
<table border="0" cellpadding="0" cellspacing="0" id="tblinvoice">
<tr>
<th>Job Title</th>
<th>Type</th>
<th>Language</th>
<th>Translator</th>
<th>Total</th>
<th>Full</th>
<th>Fuzzy</th>
<th>Proof</th>
<th>Full Price</th>
<th>Discount Price</th>
<th>Document Format</th>
<th>Pages</th>
<th>Typesetting Cost</th>
<th>EN Proofreading Cost</th>
<th>Total</th>
<th>Translator Charge</th>
<th>Profit</th>
<th>Profit Percentage</th>
</tr>
<?php
$previousMonth = '';
if ($totalRows_rsInvPending > 0) {
// Show if recordset not empty
do ($row_rsInvPending = mysql_fetch_assoc($rsInvPending)) {
if ($previousMonth != $row_rsInvPending['themonth']) {
// for every Month, show the Month Name
?>
<tr>
<td colspan="18" class="highlight"><?php echo $row_rsInvPending['theyear'] ?> - <?php echo $row_rsInvPending['themonth'] ?></td>
</tr>
<?php $previousMonth = $row_rsInvPending['themonth']; } ?>
<?php
$previousProject = '';
if ($totalRows_rsInvPending > 0) {
// Show if recordset not empty
while ($row_rsInvPending = mysql_fetch_assoc($rsInvPending)) {
if ($previousProject != $row_rsInvPending['projid']) {
// for every Project, show the Project ID
?>
<tr>
<td colspan="18" class="highlight"><span class="blueBold"><a href="#" onclick="toggle2('proj1<?php echo $row_rsInvPending['projid'] ?>', this)"><img src="../../Images/plus.gif" border="0" /></a> <?php echo $row_rsInvPending['projid'] ?> - </a></span><span class="blueNOTBold"><em><?php echo $row_rsInvPending['projtitle'] ?></em></span></td>
</tr>
<?php $previousProject = $row_rsInvPending['projid']; } ?>
<tr class="proj1<?php echo $row_rsInvPending['projid'] ?>" style="display:none">
<td><?php echo $row_rsInvPending['jobname']; ?></td>
<td><?php echo $row_rsInvPending['projtype']; ?></td>
<td><?php echo $row_rsInvPending['langtname']; ?></td>
<td><?php echo $row_rsInvPending['translator']; ?></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<?php } while ($row_rsInvPending = mysql_fetch_assoc($rsInvPending)); ?>
<?php } // Show if recordset not empty ?> -
Utility for determining the month of the date
Hi All,
I am currently using the Date object to get the date in numbers and then by using a switch case, am manually printing the month in words.
Is there any utility/method which gives us the month text like August, September, etc., instead of 8 and 9?
Please give me some pointers on the same.
Thanks,
AnithaHey!
Yeah, there is an easy way to achieve this!
You can create prototype for Date function like this:
Date.prototype.dayName = function() {
var myDay = ['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'];
return myDay[this.getDay()];
Date.prototype.monthName = function() {
var myMonth = ['January','February','March','April','May','June','July','August','September','October','November','December'];
return myMonth[this.getMonth()];
And you are using it like this:
var myToday = new Date;
alert((myToday.dayName() + ', ' + myToday.getDate() + ' ' + myToday.monthName() + ', ' + myToday.getFullYear()));
Hope it helps!
tomaxxi
http://indisnip.wordpress.com/ -
How to - get first DAY of the month from the date ?
Hi
pls helphi,
data : DAYNR LIKE HRVSCHED-DAYNR,
DAYTXT LIKE HRVSCHED-DAYTXT.
data langu like sy-langu value 'EN'.
Parameters PDATE LIKE SY-DATUM.
PDATE+6(02) = '01'.
CALL FUNCTION 'RH_GET_DATE_DAYNAME'
EXPORTING
LANGU = LANGU
DATE = PDATE
CALID =
IMPORTING
DAYNR = DAYNR
DAYTXT = DAYTXT
DAYFREE =
EXCEPTIONS
NO_LANGU = 1
NO_DATE = 2
NO_DAYTXT_FOR_LANGU = 3
INVALID_DATE = 4
OTHERS = 5
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
WRITE :/ PDATE, DAYNR, DAYTXT.
(OR)
Try..
DATA:DAYNR LIKE HRVSCHED-DAYNR,
DAYTXT LIKE HRVSCHED-DAYTXT,
DAYFREE LIKE HRVSCHED-NODAY.
DATA:LANGU LIKE SY-LANGU ,
DATE LIKE SY-DATUM,
CALID LIKE P1027-CALID VALUE 'US'.
date = sy-datum.
date+6(2) = 01. "----->to get the first day .
*first day of the month
write:/ 'First date of the month', date.
*Day name
CALL FUNCTION 'RH_GET_DATE_DAYNAME'
EXPORTING
langu = SY-LANGU
date = DATE
CALID = CALID
IMPORTING
DAYNR = DAYNR
DAYTXT = DAYTXT
DAYFREE = DAYFREE
EXCEPTIONS
NO_LANGU = 1
NO_DATE = 2
NO_DAYTXT_FOR_LANGU = 3
INVALID_DATE = 4
OTHERS = 5
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
WRITE:/ DAYTXT.
Don't forget to reward if useful.... -
My two line graphs covers six months, but only shows three months How can I make it show all six months
select the chart, then open the Chart Formatter:
Then click "Axis", then "Category (X)"
Change the "Label Angle" to "Left Vertical" or "Right Vertical" -
Not sure i like this new operating system.
Hello lee3202
You can have that customization on iCloud.com to setup that kind of repeating event. Just navigate to iCloud.com and then go to Calendars. customization
iCloud Help
http://help.apple.com/icloud/#/mmfbbb32be
Thanks for using Apple Support Communities.
Regards,
-Norm G. -
Grouping by month within date range
Hi,
I have a date range which I like to group by months, but not from the 1st to last date of the calendar month but by given start date. For example the table below represents the date range with some values in a table. So the
first month range in the group should be from 06/06/2013 to 08/07/2013. The 06/07/2013 is absent because it's Saturday. In fact the data is populated with working days only.
Table below shows what I really would like to get:
There is a simple calculation for each month anniversary date, if the value from the start date, 06/06/2013, here 12 is less than the next month anniversary date, 08/07/2013, which is 9, then it should ignore it. And only show the value from the month
who's anniversary date value is less than the first date value, 12. So the example above shows value 14 for the second month's anniversary date, 06/08/2013. If the value has been found in any month the show, and ignore the rest.
I am just interested if there are any and report which number of month and the value.
I can implement this in procedural way, such as in VBA, but because the above looped many times it will take hours to run the process. I have tried in SQL Server, but first problem I came up with is that I can't group by month from the given start
date.
Is this possible to do in T-SQL ?I'm not sure I entirely understand your question. So I'll break the answer into two parts.
First, as I understand it, you are looking for a way to group data by months, but not all dates in June, 2013 as one group, all dates in July, 2013 as the next group, etc. Instead you want all dates from June 6, 2013 to July 5, 2013 as the first month,
all dates from July 6, 2013 to August 5 as the second month etc. The way to do that is use
DATEDIFF(month, '20130606', <your date column>) + CASE WHEN DAY(<your date column>) < 6 THEN -1 ELSE 0 END
So you can assign the month number you want to every row when you select from your table by
SELECT DATE, VALUE, DATEDIFF(month, '20130606', DATE) + CASE WHEN DAY(DATE) < 6 THEN -1 ELSE 0 END AS MonthNumber
FROM <your table name>
Now as I understand it (but am not sure), you want the first value in each "month" (as you are defining "month" which is greater than the value contained in your start date and if no value in a particular month is greater than that value,
you don't want any row for that month. For that you could do something like
Declare @StartDate date;
Declare @StartValue int;
Set @StartDate = '20130606';
Select @StartValue = Value From <your table name>
Where Date = @StartDate;
;With cteMonthNumber As
(SELECT DATE, VALUE, DATEDIFF(month, @StartDate, DATE) + CASE WHEN DAY(DATE) < DAY(@StartDate) THEN -1 ELSE 0 END AS MonthNumber
FROM <your table name>
WHERE DATE > @Date AND VALUE > @Value),
cteOrdered As
(Select DATE, VALUE, MonthNumber,
ROW_NUMBER() OVER (PARTITION BY MonthNumber ORDER BY DATE) As rn
From cteMonthNumber)
Select MonthNumber, Value As KickOutValue
From cteOrdered
Where rn = 1;
Tom
P.S. Notice that I wrote my date literal as YYYYMMDD. This is a good idea in SQL Server since '20130806" will always be interpreted as August 6. But depending on the settings on your server and/or client '06/08/2013' might be dd/mm/yyyy
and so be August 6, but it might be interpreted as mm/dd/yyyy and be June 8.
It is also a good idea to express date literals in this forum as yyyymmdd. There are a lot of us on the forum from the United States and we think 06/08/2013 is June 6 and a lot of us from other places who think 06/08/2013 is Aug 8. If you give
your dates as yyyymmdd we don't have to try to figure out what format you are using. -
how do i keep only the name of a month in a cell in Numbers and not have it auto fill the date and time?
Hi JN and Barry,
Barry wrote:
The second case may not be included in the available D&T formats in Numbers 3
For my region, the Date & Time data formats include month.
The Date Pop-Up
This may not be the case for all regions.
Remember that the month is only the display, and the Full Date & Time is still there. If I change the format to reveal what is behind the curtain:
Regards,
Ian. -
Backup Error : The Data Is Invalid Windows Server 2008 R2
Hello,
I have a Problem when I try to make Backups to Partition C in Windows Server 2008 R2:
Error The Data is Invalid.
Obs: I can make backups for System Reserved Partition .
I had the same problem 2 months ago (the data is invalid), Then I folowed this the advice to delete "Framework64\v2.0.50727\Temporary
ASP.NET Files" and worked for me , from this post: http://social.technet.microsoft.com/Forums/en-US/windowsbackup/thread/89052b85-9c9b-479f-ab76-a20da3cc4696
Now I have the same problem and I delete the
Temporary ASP.NET Files , but it is not working , I received the same error on backup:
"The backup operation that started at '2012-09-20T07:13:26.024163900Z' has failed with following error code '2147942413'. Please review the event details for a solution, and then rerun the backup operation once the issue is resolved."
When I try vssadmin list writers, Everything is ok , "No error" .
I tried to run :
net stop "System Event Notification Service"
net stop "COM+ Event System"
net stop "Microsoft Software Shadow Copy Provider"
net stop "Volume Shadow Copy"
cd /d %windir%\system32
net stop vss
net stop swprv
regsvr32 /s ole32.dll
regsvr32 /s oleaut32.dll
regsvr32 /s vss_ps.dll
vssvc /register
regsvr32 /s /i swprv.dll
regsvr32 /s /i eventcls.dll
regsvr32 /s es.dll
regsvr32 /s stdprov.dll
regsvr32 /s vssui.dll
regsvr32 /s msxml3.dll
net start "System Event Notification Service"
net start "COM+ Event System"
net start "Microsoft Software Shadow Copy Provider"
net start "Volume Shadow Copy"
But is not Working
Any Advice ?
Thank'sHello Lucian,
the issue may be caused by an invalid entry inside the following registry sub tree.
HKey_Local_Machine\Software\Microsoft\Windows NT\CurrentVersion\ProfileList
Please open the registry editor with regedit.
Expand and local to the subtree, check if there is an entry that has a ".bak" value appended. If so, this may be cause the failure when trying to resolve the SID of the writer.
Please backup the registry key first, and then delete that entry with the extra ".bak" and reboot the server then test the backup
Run the command "vssadmin list writers" and make sure all the writers are stable with no errors
Please look for errors in application event logs after you initiate backup on the server
Sincerely, Asifkhan -- Please mark my post helpful if it was really helpful to you. -
Which kind of cache group is suitable for the intensive insertion operation
Hi Chris,sorry for call you directly. Because you give me many good answers about my many newbile questions these days:)
You told me that the dynamic cache group is not suitable for the intensive insertion operation
because each INSERT to a child table has to perform an existence check against Oracle even if load the cache group into RAM manually(Please correct me if wrong).
Here I have many log tables that they only have a primary key and no foreign references and they are basically used to reflect changes from the related main tables.
Every insert/update/delete on the main table will insert a log record in the related logging table(No direct foreign references).
In order to cache these log tables, I have to create a independent cache group for each one, right?
I do not want load these logs data into RAM because my application do not use them or these logs will waste my RAM clearly.
so here comes my question.Which kind of cache group should I use to gain the best performance with no loading them into RAM?
As my understand,the dynamic cache group load data on demand while the regular cache group need load all the data into RAM firstly and it won't load data from oracle anymore?
Thanks in advance
SuoNayiLet me be more specific. Consider this cache group:
CREATE DYNAMIC ASYNCHRONOUS WRITETHROUGH CACHE GROUP CG_SWT
FROM
TPARENT
PPK NUMBER(8,0) NOT NULL PRIMARY KEY,
PCOL1 VARCHAR2(100)
TCHILD
CPK NUMBER(6,0) NOT NULL PRIMARY KEY,
CFK NUMBER(8,0) NOT NULL,
CCOL1 VARCHAR2(20),
FOREIGN KEY ( CFK ) REFERENCES TPARENT ( PPK )
INSERTS into TPARENT will not do any existence check in Oracle. An INSERT INTO TCHILD has to verify that the corresponding parent row exists. If the parent row exists in TimesTen then no check is doen in Oracle. If the parent row does not exist in TimesTen then we have to check if it exists in Oracle and if it does we will load it into TimesTen from Oracle (along with any other child rows) before completing the INSERT in TimesTen. So in the case where the parent always exists already in TimesTen there is no overhead but on the other case there is a lot of overhead.
If your log table is truly not related to the main table (not in TT and not in Oracle either) then they should go into separate cache groups. If each insert into the log table has a unique key and there is no possibility of duplicates then you do not need to load anything into RAM. You can start with an empty table and just insert into it (since each insert is unique). Of course, if you just keep inserting you will eventually fuill up the memory in TimesTen. So, you need a mechanism to 'purge' no longer needed rows from TimesTen (they will still exist in Oracle of course). There are really two options; investigate TimesTen auotmatic aging (see documentation) - thsi may be adeuate of the insert rate is not too high - or implement a custom purge mechanism using UNLOAD CACHE GROUP (see documentation).
Chris -
hi,
I have a query in Informix which get the month part of a date. Please help me in converting the same to oracle.
Informix query
select month(col1 - today) from tab1;
col1 is a date field, today will yield the current date and month function will get the month of the date.
In oracle, when we subtract two dates we will get a number value, how to convert that back to date and extract the month part.
Help me?????
Regards,
GopuIf your looking for the number of months between two dates:
SQL> select months_between(sysdate, trunc(sysdate,'yyyy')) from dual ;
MONTHS_BETWEEN(SYSDATE,TRUNC(SYSDATE,'YYYY'))
6.06223081
Just replace my usage of sysdate (etc) with the dates your using...
Hope that helped,
Stan -
I am building a monthly time sheet. I need all the dates to populate once the initial date is chosen by the user. I have this working properly for each month that has 31 days. For months with 30 days, it populates the first day of the next month. How do I make sure that the only the dates for the month selected are populated?
Any help is appreciated!
TracyHello!
Thank you for your response, but I can not get it to function properly.
I added a text field to calculate the number of days. Here is the script I placed in the text field:
form1.commentSub.NoofDays::calculate - (FormCalc, client)
var StartDate = Ref(SubPg1.tableSub.Table1.Row1.Date1)
var EndDate = Ref(SubPg1.tableSub.Table1.Row2.Date2)
var MonthStart = Date2Num(Date1.formattedValue, "MM/DD/YYYY")
var nMonth = Num2Date(MonthStart, "MM") ; Current Month
var nDay = Num2Date(MonthStart, "DD") ; Current Day
var nYear = Num2Date(MonthStart, "YYYY") ; Current Year
var nFirstDay = Date2Num(Concat(nMonth,"01", nYear), "MM/DD/YYYY") ; First Day in the current month
var nLastDay
var nCountDays = nFirstDay
StartDate.rawValue = Num2Date(nFirstDay, "MM/DD/YYYY") ; Set first day of month as start date
; Determine number of days in the current month
var nMonthCheckStart = Num2Date(nFirstDay, "MM")
var nMonthCheckEnd
for i=0 upto 31 step 1 do
nCountDays = nCountDays + 1
nMonthCheckEnd = Num2Date(nCountDays , "MM")
if(nMonthCheckStart == nMonthCheckEnd) then
nLastDay = nCountDays
endif
endfor
EndDate.rawValue = Num2Date(nLastDay, "MM/DD/YYYY") ; Set lastday of month as end date
$.rawValue = Num2Date(nLastDay, "DD") ; Set number of days this month
In the date field where the user selects the date. I have this:
form1.SubPg1.tableSub.Table1.Row1.Date1::exit - (FormCalc, client)
var dayNum = Date2Num($.formattedValue,"MM/DD/YY")
Row2.Date2.rawValue = Num2Date(dayNum+1,"MM/DD/YY")
Row3.Date3.rawValue = Num2Date(dayNum+2,"MM/DD/YY")
Row4.Date4.rawValue = Num2Date(dayNum+3,"MM/DD/YY")
Row5.Date5.rawValue = Num2Date(dayNum+4,"MM/DD/YY")
Row6.Date6.rawValue = Num2Date(dayNum+5,"MM/DD/YY")
Row7.Date7.rawValue = Num2Date(dayNum+6,"MM/DD/YY")
Row8.Date8.rawValue = Num2Date(dayNum+7,"MM/DD/YY")
Row9.Date9.rawValue = Num2Date(dayNum+8,"MM/DD/YY")
Row10.Date10.rawValue = Num2Date(dayNum+9,"MM/DD/YY")
Row11.Date11.rawValue = Num2Date(dayNum+10,"MM/DD/YY")
Row12.Date12.rawValue = Num2Date(dayNum+11,"MM/DD/YY")
Row13.Date13.rawValue = Num2Date(dayNum+12,"MM/DD/YY")
Row14.Date14.rawValue = Num2Date(dayNum+13,"MM/DD/YY")
Row15.Date15.rawValue = Num2Date(dayNum+14,"MM/DD/YY")
Row16.Date16.rawValue = Num2Date(dayNum+15,"MM/DD/YY")
Row17.Date17.rawValue = Num2Date(dayNum+16,"MM/DD/YY")
Row18.Date18.rawValue = Num2Date(dayNum+17,"MM/DD/YY")
Row19.Date19.rawValue = Num2Date(dayNum+18,"MM/DD/YY")
Row20.Date20.rawValue = Num2Date(dayNum+19,"MM/DD/YY")
Row21.Date21.rawValue = Num2Date(dayNum+20,"MM/DD/YY")
Row22.Date22.rawValue = Num2Date(dayNum+21,"MM/DD/YY")
Row23.Date23.rawValue = Num2Date(dayNum+22,"MM/DD/YY")
Row24.Date24.rawValue = Num2Date(dayNum+23,"MM/DD/YY")
Row25.Date25.rawValue = Num2Date(dayNum+24,"MM/DD/YY")
Row26.Date26.rawValue = Num2Date(dayNum+25,"MM/DD/YY")
Row27.Date27.rawValue = Num2Date(dayNum+26,"MM/DD/YY")
Row28.Date28.rawValue = Num2Date(dayNum+27,"MM/DD/YY")
Row29.Date29.rawValue = Num2Date(dayNum+28,"MM/DD/YY")
Row30.Date30.rawValue = Num2Date(dayNum+29,"MM/DD/YY")
Row31.Date31.rawValue = Num2Date(dayNum+30,"MM/DD/YY")
Row1.Day1.rawValue = Num2Date(dayNum,"EEE")
Row2.Day2.rawValue = Num2Date(dayNum+1,"EEE")
Row3.Day3.rawValue = Num2Date(dayNum+2,"EEE")
Row4.Day4.rawValue = Num2Date(dayNum+3,"EEE")
Row5.Day5.rawValue = Num2Date(dayNum+4,"EEE")
Row6.Day6.rawValue = Num2Date(dayNum+5,"EEE")
Row7.Day7.rawValue = Num2Date(dayNum+6,"EEE")
Row8.Day8.rawValue = Num2Date(dayNum+7,"EEE")
Row9.Day9.rawValue = Num2Date(dayNum+8,"EEE")
Row10.Day10.rawValue = Num2Date(dayNum+9,"EEE")
Row11.Day11.rawValue = Num2Date(dayNum+10,"EEE")
Row12.Day12.rawValue = Num2Date(dayNum+11,"EEE")
Row13.Day13.rawValue = Num2Date(dayNum+12,"EEE")
Row14.Day14.rawValue = Num2Date(dayNum+13,"EEE")
Row15.Day15.rawValue = Num2Date(dayNum+14,"EEE")
Row16.Day16.rawValue = Num2Date(dayNum+15,"EEE")
Row17.Day17.rawValue = Num2Date(dayNum+16,"EEE")
Row18.Day18.rawValue = Num2Date(dayNum+17,"EEE")
Row19.Day19.rawValue = Num2Date(dayNum+18,"EEE")
Row20.Day20.rawValue = Num2Date(dayNum+19,"EEE")
Row21.Day21.rawValue = Num2Date(dayNum+20,"EEE")
Row22.Day22.rawValue = Num2Date(dayNum+21,"EEE")
Row23.Day23.rawValue = Num2Date(dayNum+22,"EEE")
Row24.Day24.rawValue = Num2Date(dayNum+23,"EEE")
Row25.Day25.rawValue = Num2Date(dayNum+24,"EEE")
Row26.Day26.rawValue = Num2Date(dayNum+25,"EEE")
Row27.Day27.rawValue = Num2Date(dayNum+26,"EEE")
Row28.Day28.rawValue = Num2Date(dayNum+27,"EEE")
Row29.Day29.rawValue = Num2Date(dayNum+28,"EEE")
Row30.Day30.rawValue = Num2Date(dayNum+29,"EEE")
Row31.Day31.rawValue = Num2Date(dayNum+30,"EEE")
It still adds the beginning date for the following month if the month selected only has 30 days.
I am not sure how to attach the file here for you to see.
Tracy
Maybe you are looking for
-
Old Studio Display Adapters?
Someone just gave me an old Apple Studio Display, the one with the Apple Display Connector cord that carries power and video on one cord. I want to connect it to a Mac Pro circa 2007. All of the adapters I've found so far work with machines that have
-
Thunderbolt display doesn't start after standby
wakeup the MacBook from standby mode the thunderbolt display will not start since the mountain lion update. you must unplug and replug the connector for starting the display
-
Gamers Club Unlocked Welcome Coupons
How quick are we supposed to be seeing our welcome coupons from Joining the GCU? I'm most interested in using the coupons as soon as possible. Thank you.
-
Error year format in statements in FLASHBACK_TRANSACTION_QUERY.UNDO_SQL
I execute 20 delete on tab1 table and then COMMIT. flashback is enabled: in table FLASHBACK_TRANSACTION_QUERY field UNDO_SQL I can found all statements for undo: in this case I found exactly 20 insert of 20 rows that I deleted. the problem is in date
-
How to Silent Install CS 1.1.1 (Creative Suite Premium)
Hi, I am trying to set up a silent installation of Creative Suite 1.1.1 so that I can distribute it through Dell's Kace Management system. However, the earliest instructions I can find are for CS 2 (Which doesn't work - already tried) and the links