Hi. I need to be able to display each day of the current month excluding Sunday in a format: month/day (eg. 11/11). So I want the output to be: [CODE]11/11 11/12 //excludes Sunday 11/14 11/15[/CODE] etc. Does anyone know how to do this? Thanks

Member Avatar
Member Avatar
+0 forum 10

I have DatagridView on form. My database has three fields. - userId (bigint) - userName (varchar) - userDob (date) Now, on Form I have comboBox, which lists Months (Jan, Feb, March and so on...). I want my program to work like this. If I select any month on ComboBox, birthdays of clients related to that month should only be displayed in DatagridView. Help me how to do it.

Member Avatar
Member Avatar
+0 forum 2

Hi, I'm a beginner in Vb.net. I have a problem like this. My table name in dtabase is *tblsales* ![67f4b407a5443c6d48ba102a4779c9f2](/attachments/large/4/67f4b407a5443c6d48ba102a4779c9f2.JPG "67f4b407a5443c6d48ba102a4779c9f2") and i have 4 combobox in month and year ![81361dad1be3d14458ae4ad0a3aa9a55](/attachments/large/4/81361dad1be3d14458ae4ad0a3aa9a55.JPG "81361dad1be3d14458ae4ad0a3aa9a55") i need to find data between this 4 combobox. And this is the code i've tried before. For a As Integer = 0 To 11 Dim b As DateTime ComboBox1.Items.Add(Format(b.AddMonths(a), "MMMM")) Next ComboBox1.SelectedIndex = 0 that one to fill the combobox with months and this code below to search the data DA = New SqlDataAdapter("select * from tblpenjualan where month >='" & ComboBox2.Text & "' And month <='" …

Member Avatar
Member Avatar
+0 forum 13

I am try to populate a JComboBox with the days of a particular month and year. I researched the problem and came up with this: public void actionPerformed(ActionEvent e) { //code to respond to the buttons goes here if ( e.getSource() == cmbMonth || e.getSource() == cmbYear ) { cmbDay.removeAllItems(); int year = Integer.parseInt(cmbYear.getSelectedItem().toString()); int month = cmbMonth.getSelectedIndex() + 1; Calendar currMonYear = Calendar.getInstance(); currMonYear.set(Calendar.YEAR, year); currMonYear.set(Calendar.MONTH, month); int daysInMon = currMonYear.getActualMaximum(Calendar.DAY_OF_MONTH); for ( int i = 1; i <= daysInMon; ++i ) cmbDay.addItem(i); int x = 0; } }//end actionPerformed() Though I am getting incorrect values. Any suggestions?

Member Avatar
Member Avatar
+0 forum 3

Hi how can i sort using Month i have January, February.... December i want to sort it out so the user will see it from January - December my column name is "Months" and it is in subitems(0) Thank you in a advanced

Member Avatar
Member Avatar
+0 forum 3

Can anboby give some links for month picker and year picker in javascript.

Member Avatar
Member Avatar
+0 forum 1

Hi I want to create a simple calendar on Smarty. I attached an image on how it looks so far. Here is my code **calendar.php** file: <?php require("libs/Smarty.class.php"); $smarty = new Smarty(); $date = "1/01/2013"; //January 01, 2013 $week_days = array("Sun"=>1, "Mon"=>2, "Tue"=>3, "Wed"=>4, "Thu"=>5, "Fri"=>6, "Sat"=>7); $total_day_of_month = get_total_day($date); $starting_day = $week_days[Date("D",strtotime($date))] - 1; foreach (array_keys($week_days) as $day) $days[] = $day; for ($i=0; $i<$starting_day; $i++) $days[] = "&nbsp;"; for ($i=1; $i< ($total_day_of_month+1); $i++) $days[] = $i; $smarty->assign("title","2013"); $smarty->assign("special_days", $days); $smarty->assign("TABLE", array ("title" =>"January")); $smarty->display("calendar.tpl"); $output = $smarty->fetch('calendar.tpl'); function get_total_day($date){ $time_stamp = strtotime($date); $month_ar = explode("/", $date); $month = $month_ar[0]; …

Member Avatar
Member Avatar
+0 forum 11

Dear All! I want to get my columns value into rows . i am taking sum of qty of each month . like this select sum(Case when month(invoicedate) = 1 then qty else 0 end) as janQty, sum(Case when month(invoicedate) = 1 then qty else 0 end) as febQty, sum(Case when month(invoicedate) = 1 then qty else 0 end) as marQty, . . . from Invoices above query is returning result like this janQty---------febQty---------marQty------------- --156-----------678-------------345------ and my required format is janqQty------156 febqQty------678 marqQty------345 . . . i can use union all like this this select 'jan' as month, sum(case when …

Member Avatar
Member Avatar
+0 forum 2

Hey all, I am currently using the following to echo the 1st Current_month: echo "1st '.date('F').'."; So that would say, for example, 1st October. What would I need to do to echo the next month? In this case 'November'? Thanks for any help!

Member Avatar
Member Avatar
+0 forum 2

Hi all, My head is about to explode and I was wondering if anyone has ever found a solution to my problem. Using MYSQL and PHP I need to gather those people under 5 years of age and break up the ages into 6 month periods whilst keeping a count of how many of each there are. The database of users is very big and I need the fastest possible calculation. Any help will be appreciated. Many thanks

Member Avatar
Member Avatar
+0 forum 1

I want to have a list of months and years when content was posted to my website. Example: /// **Archive** *July 2012 June 2012 May 2012 April 2012* /// Then, clicking one of list items takes you to a page with every post from that month. I know I should setup two columns in my mysql table, month and year. From there, I don't know how to get PHP to build a list using the data. I could do it manually every time a new month comes up, but that defeats the purpose in my book. Please help me, Internet …

Member Avatar
Member Avatar
+0 forum 6

Good day Gentl'men! I just need a little help for date manipulation.here is the criteria.. I have **two date picker, dtfrom.value & dt2.value, and a variable called "viewtype".. ** **if viewtype="monthly"**, I want to create a listview column base on fromdate.value & todate.value..Example, if **fromdate.value="12/24/2012" and to.value="06/31/2013"**, I want to create a column in listview from 12/24/2012 upto 06/31/2013. So **six column will be created**.. if **viewtype="weekly" or viewtype="annually" or viewtype="semi-annually"** same procedure will happen! Thank you for helping!

Member Avatar
Member Avatar
-1 forum 1

Hi everyone! This is the code that I have made, however, when I enter a date for example if I type : 12/12/2012 then the date for tomorrow displays a list of dates. I am unsure how to get it to only display the date of tomorrow. #include <stdio.h> int main (int argc, char *argv[]) { int dd; int mm; int yyyy; int n = 3; printf("Enter date in format dd/mm/yyyy: \n"); n = scanf("%d/%d/%d", &dd, &mm, &yyyy); printf("Date read: %d/%d/%d\n", dd, mm, yyyy); if (n==3) { if (dd==31 && mm==1) { printf("Tomorrow: 01/02/%d\n", yyyy); } else if (dd==28 && …

Member Avatar
Member Avatar
+0 forum 4

I'm completely lost with this assignment code. The objective is to modify this program that originally asked the user for an input 1-12 for a month, and it outputs the number of days in that month. The modifications would make it so that the user inputs the name of the month instead of the value, and the program outputs the number of days. I also have to incorporate lines that asks the user to reenter the month if it is not a valid month, and to reenter the year if if the year is < 0 (negative). I think the …

Member Avatar
Member Avatar
+0 forum 4

As Part of an assignment one of the requirments is to convert a date into month format. that is the user must enter start month and year of employment and end month and year of employment for example 4 1980 till 7 2009 (mmyyy) these two dates must be coverted to months easy enough. Then those months need to converted back to years and months worked in this case it will work out to 28 years and 4 months. I have busted my head trying to get this right and for most it works but if i use a date …

Member Avatar
Member Avatar
+0 forum 2

I need a user to input int and get the name of the month in return. I have this: [CODE]/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package se211.dz14; import java.text.DateFormatSymbols; import java.util.Scanner; /** * * @author Boris */ public class Main { public String getMonth(int month) { return new DateFormatSymbols().getMonths()[month-1]; } /** * @param args the command line arguments */ public static void main(String[] args) { // TODO code application logic here System.out.println("Please enter month's number:\n"); Scanner scan = new Scanner(System.in); int month = scan.nextInt(); Main input = …

Member Avatar
Member Avatar
+0 forum 8

The issues with this program are: 1. File: D:\Unit 3 Data Type, Objects, Assignments\CreditCardBill.java [line: 20] Error: Type mismatch: cannot convert from double to int 2. File: D:\Unit 3 Data Type, Objects, Assignments\CreditCardBill.java [line: 21] Error: Type mismatch: cannot convert from double to int EDIT: I have tried type casting, but I believe you somehow can't go from a double to an int, but instead only the other way is possible. Added a few more variables which I was missing. Say that you owe the credit card company $1000.00. The company charges you 1.5% per month on the unpaid balance. …

Member Avatar
Member Avatar
+0 forum 65

Hey everyone, I have the following varaibles: $_POST['month'] $_POST['day'] $_POST['year'] I need them to be put into a string format such as '2012-02-15' (Year-Month-Day). Could someone please help me do this in php? I've tried a few times but can't connect them with the "-" successfully. Thanks for your help.

Member Avatar
Member Avatar
+0 forum 2

I want to display last 6 months from the current month. For example This month is september, I want to display April, May, June, July, August, September Can anyone help me with this ?

Member Avatar
Member Avatar
+0 forum 7

[CODE]import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Calendar; public class CheckIn{ Date today; void getArrivalDate() { DateFormat df = new SimpleDateFormat("dd/MM/yyyy"); try { System.out.print("Enter Date in dd/mm/yyyy format: "); String d = Keyboard.readString(); today = df.parse(d); df.format(today); } catch (ParseException e) { e.printStackTrace(); } } void getDepartureDate(){ Calendar ca1 = Calendar.getInstance(); ca1.setTime(today); System.out.print("How many nights do you want to stay? "); int nights = Keyboard.readInt(); ca1.add(Calendar.DATE, nights); System.out.println((ca1.get(Calendar.DATE)) + "/" + ca1.get(Calendar.MONTH + 1) + "/" + ca1.get(Calendar.YEAR)); } } [/CODE] When I'm testing the method getDepartureDate(), the month isn't working well. Eg. If I input 12/12/2011(Arrival Date) …

Member Avatar
Member Avatar
+0 forum 14

how to convert Month in words to its numeric equivalent.... example: <?php $month = 'JANUARY'; // code to convert the month JANUARY to its numerical equivalent... echo 'help please for the numerical JANUARY equivalent here'; ?> ----------------------------- SAMPLE OUTPUT 01

Member Avatar
Member Avatar
+0 forum 5

I am still relatively new to Python and don't think I'm familiar/comfortable enough with my understanding of the datetime functions... I want to take just the current month from the datetime function so I can use the number to send the string of the month (ex, datetime would give me 7 as the month, so I will tell it to output 'July') to another program as a shared variable but I cannot seem to figure out how to display just the month in Python. I got as far as using [CODE]datetime.date.today()[/CODE] to get just the current year, month, and day …

Member Avatar
Member Avatar
+0 forum 1

I have table names 'payroll' with following data month , pay January , 1200 March , 1500 December , 2000 I want the following result Janury , 1200 February , 00 March , 1500 April , 00 May , 00 June , 00 July , 00 August , 00 September , 00 October , 00 November , 00 December , 00 Please help to make the query. Thanks in advance

Member Avatar
Member Avatar
+0 forum 7

Hi All. Now I am really stuck here. I am trying to develop a calendar which hilights the days date (which I have done) but now I am on to the really tricky bit (for me). I need the calendar to change each month and because the different months have different days of the week for a day in that month and also don't have the same number of days I had to come to all of you because I don't know where to start. I have the code here if it helps and any help would be very much …

Member Avatar
Member Avatar
+0 forum 3

[CODE] maxDays = calendar.getActualMaximum(calendar.DAY_OF_MONTH); System.out.println(maxDays); [/CODE] When looking through the javadocs it seems like this would work but it apparently doesn't. Any help on figuring why it doesn't or another way would be appreciated

Member Avatar
Member Avatar
+0 forum 4

[URL="http://www.computerworld.com/action/article.do?command=viewArticleBasic&taxonomyName=security&articleId=9013481&taxonomyId=17&intsrc=kc_top"]According to ComputerWorld[/URL], MySpace seems like the next target for the now-famous "month of bugs" project. The hackers are of course, anonymous, which is perhaps part of the fun of doing such a project. They say that they're going to expose a new bug every day for a whole month, just like the other "month of bugs" projects have done (for example: Month of Apple Bugs and Month of Kernel bugs). As much fun as it seems, I'm skeptical on how successful and how much of an impact this project is going to have on MySpace. One point that I …

Member Avatar
+0 forum 0

The End.