I want to be able to get dates saved in DB, between two dates (fromdate - todate)?
i.e. will have to calendars, and the user selects (fromdate - todate) ,, and then all dates used in DB inbetween appears in a list or repeater or something ??
I need some pointers to start on this.We are building a time off application where three instances of a calendar control will be displayed ( prev - current and next month) now users can click on various dates accross all three instances and then a count of number of days should be diaplyed in the parent textbox.
To begin with this, i started with adding the dates clicked by the user in Calendar2_SelectionChanged method into a list<> so that i can get the all dates user clicked and then add it to calander's selected dates collection. But this throws an e" object reference not set" error.
Is there anyother way to get all the dates that user click onthe calendar( note the dates doesn't get highlighed so seleteddates doesnt work)does anyone has a good example for this.
i want to use a ajax calender extender in which when user clixcks on button caleder show only dates of current month not previous dates.i dont want to disable dates. i should not apper on current month calender. means it should start from 1 and end to 30 or 31
once a user select an item from dropdownlist > Dates from DB are shown on calendar in pink color.
The problem now is when i want to select new dates the selected dates(in pink) become deselected .. I want them to stay selected so i can know which dates are already used .
i have to date say in MM/DD/YYYY format "1/1/2010" and 1/30/2010". now i want to find dates which comes on monday. so out out will be 01/04/2010, 1/11/2010, 01/18/2010, 01/25/2010
I am generating multi-series graphs with the date along the X-Axis. The problem is that not all of the series in the graph have the same dates in the date range. Meaning that if I choose 1 Feb through 30 Apr that one series may have data that starts at 1 Feb but only goes through the end of March but another series may have data for the entire date range. This skews the charts I need to create. Go, given the date range taken at the begining of the query I'd like to generate a list of dates and populate the data to be graphed, padding those series with 0's for those dates that have no data.
How to display dynamic header for datalist control(Dates are dynamic).Also i want header in each row.I want something like this.Words in bold are headers.Header also in each
row.8/1/2010,8/8/2010,8/15/2010,8/22/2010 are dynamic dates whic change every month based on user selecting date from datecontrol.
I am saving to dates (fromdate) and (todate) into DB .. And then I want to view all the days (from to) and the dates in between , highlited in a calendar control ,, how can i do that ? I know how to highlight dates saved into calendar but how can i do the same to the dates inbetween ?
I am simply trying to determine age from a selection of Month, Day and Year representing birthdate, which I have captured from three drop down list boxes, by subtracting the studnetBirthDate from Today. How can I get Age? Using a calendar to select birth date seemed too clumsy because of the year navigation, age ranges from 3 to 26 yrs old. If anyone has a better idea I would be open to that as well. Instead I am using three dropdown boxes, one each for day, month and year.
Dim studentBirthDate As Date Dim stMonth As String.........
I have a page like this In my SQL, I want calculate some value between these days And this is my code;
strQuery = @"SELECT B.HESAP_NO, A.TEKLIF_NO1 + '/' + A.TEKLIF_NO2 AS 'TEKLIF', B.MUS_K_ISIM, CONVERT(VARCHAR(10),A.ISL_TAR,103) AS 'TARIH', SUM(ISNULL(CAST(A.ODENEN_ANAPARA AS FLOAT),0)+ISNULL(CAST(A.FAIZ AS FLOAT),0)+ ISNULL(CAST(A.BSMV AS FLOAT),0)+ISNULL(CAST(A.GECIKME_FAIZ AS FLOAT),0)+ ISNULL(CAST(A.GECIKME_BSMV AS FLOAT),0)) AS 'YATAN', (CASE WHEN B.DOVIZ_KOD = 21 THEN 'EUR' WHEN B.DOVIZ_KOD = 2 THEN 'USD' WHEN B.DOVIZ_KOD = 1 THEN 'TL' END) AS 'KUR', D.AVUKAT, (CASE WHEN D.HESAP IN (SELECT T_HESAP_NO FROM TAKIP) THEN (SELECT ICRA_TAR FROM TAKIP WHERE T_HESAP_NO = D.HESAP) ELSE ' ' END) AS 'ICRA TARİHİ', (CASE WHEN D.HESAP IN (SELECT T_HESAP_NO FROM TAKIP) THEN (SELECT HACIZ_TAR FROM TAKIP WHERE T_HESAP_NO = D.HESAP) ELSE '' END) AS 'HACİZ TARİHİ' FROM YAZ..MARDATA.BIR_TAHSIL A, YAZ..MARDATA.S_TEKLIF B, AVUKAT D WHERE A.TEKLIF_NO1 = B.TEKLIF_NO1 AND A.TEKLIF_NO2 = B.TEKLIF_NO2 AND B.HESAP_NO = D.HESAP AND A.HESAP_NO = D.HESAP "; if (txtBoxText1 != "") { strQuery = strQuery + " AND A.ISL_TAR >= @S_TARIH_B"; dt_stb = DateTime.Parse(txtBoxText1); myCommand.Parameters.AddWithValue("@S_TARIH_B", dt_stb); } if (txtBoxText2 != "") { strQuery = strQuery + " AND A.ISL_TAR <= @S_TARIH_S"; dt_sts = DateTime.Parse(txtBoxText2); myCommand.Parameters.AddWithValue("@S_TARIH_S", dt_sts); } strQuery = strQuery + " GROUP BY B.HESAP_NO, A.TEKLIF_NO1 + '/' + A.TEKLIF_NO2,A.ISL_TAR,B.DOVIZ_KOD ,B.MUS_K_ISIM, D.AVUKAT, D.HESAP"; And this is my Function; ALTER FUNCTION [dbo].[fngcodeme] ( @HESAP INT,@BAS DATE, @BIT DATE,@DOV INT ) RETURNS FLOAT AS BEGIN RETURN( SELECT SUM(TUTAR) FROM YAZ..MARDATA.M_GHAREKET WHERE TEMEL_HESAP = @HESAP AND DOVIZ_KOD = @DOV AND REF_KOD = 'GC' AND BACAK_GRUP = 'PERT' AND ISL_KOD = 1 AND ISL_TAR >= @BAS AND ISL_TAR <= @BIT ) END
What I want getting a value in this code with this function. @BAS is Start Date, @BIT is End Date How can I associate @BAS with Textbox1 and @BIT with Textbox2 ?
I'm replacing a website that was previously HTML only.
I put a GridView on the French and the English page and I'm getting 2 fields: A date and a currency.
For the date, I need to transform it into a long date format. The English part isn't very hard, but when I get to the French page, I can't transform it into a long date format with French words (i.e.:Mardi instead of Tuesday).
Is there any way to format the string with French date words instead?
OleDbCommand com = _ new OleDbCommand("select * from techs where actd0v between '" + _ TextBox1.Text + "' and '" + TextBox2.Text + "'" , con);
where textbox 1 and 2 are the specified dates in which I want to retrieve some date related to those dates. But when I'm trying to find the data between the given dates it gives me some dates which are not included in between them. Is there any pattern I need to specify to get all the dates which occur in between the specified dates.
I am having trouble comparing two dates. One is captured from input, other one is predefined. Please see the code below: I enter this date in the textfield: 04-12-2001
Dim idatum As Date If Date.TryParseExact(aankoopdatumIDclm.Text, "dd-mm-yyyy", Nothing, System.Globalization.DateTimeStyles.None, idatum) = False Then 'idatum is true at this point...
I have a requirement where i want compare only the date part of a DateTime Object not the seconds with the another object.I tried if(DateTime.Compare(dt1, dt2) == 0) where it compares both date and seconds, but i want only date part.