asp.net - DateTime [ Last week , Last month periods ] -


I need to set up last week after changing the dropdown list

I

  switch (DDL. Selected indices) {Case 0: {// last week this. Text box 3 Text = DateTime // Preview day on the first day. Text box 4. Text = date time // PREVIOUS week last day} break; Case 1: {// Last mouth this. Text box 3 Text = DateTime.A month ago on the first day. Text box 4. Text = date time. Last day of the previous month) break; }  

So, what are some ways that I can select date values ​​like what I want?

Also, I found the AJAX Calendar Enhancement on the Text Box

Thank you.

Something like that, I think:

  int deeff WeeckNumber = (Int) datetime. today. Dioff Wake - (Int) CultureInfonador Contentculture.DatetimeFormat.PasteurDayWawk; Var Previos Viccista Day = DateTime today. Adaye (-7 - dayoffquenumber); Var Previoswalk List de = Previos Vikkfarstede Adwords (6); Var PrevioSamsFirstFirstDay = DateTime today. AddMonths (-1); PREVIOONTHFURSTDAY = PREVEOSAMONTFirst DAY. Adyades (PrevosmontFirstday. De + 1); Var PrevioSamonthalast Day = PrevivoMonthfirstday Adygej (Datetime. Des Innmonth (PrevioSmontFirstday. Yewer, PreviosomontFirstida Month) - 1);  

Edit: View the comment.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -