Click here to Skip to main content
15,867,308 members
Home / Discussions / ASP.NET
   

ASP.NET

 
SuggestionRe: So I finally got my Angular wrapped in .Net Core 2.2 app working in a Docker Container on a production server. Pin
Richard MacCutchan20-Apr-19 22:16
mveRichard MacCutchan20-Apr-19 22:16 
GeneralRe: So I finally got my Angular wrapped in .Net Core 2.2 app working in a Docker Container on a production server. Pin
jkirkerx21-Apr-19 8:17
professionaljkirkerx21-Apr-19 8:17 
Questionwithout using session and querty string value pass in another form Pin
UDTWS14-Apr-19 23:39
UDTWS14-Apr-19 23:39 
AnswerRe: without using session and querty string value pass in another form Pin
User 418025415-Apr-19 7:44
User 418025415-Apr-19 7:44 
QuestionExpiry date and Update Expiry Date Pin
Member 1370260513-Apr-19 1:49
Member 1370260513-Apr-19 1:49 
AnswerRe: Expiry date and Update Expiry Date Pin
User 418025415-Apr-19 7:55
User 418025415-Apr-19 7:55 
SuggestionRe: Expiry date and Update Expiry Date Pin
Richard Deeming15-Apr-19 8:25
mveRichard Deeming15-Apr-19 8:25 
AnswerRe: Expiry date and Update Expiry Date Pin
jkirkerx16-Apr-19 9:57
professionaljkirkerx16-Apr-19 9:57 
You should return a model when you read the database.
A model is a strong typed class that you use to store data in.
Once you have the model populated, you can add 30 days to the date column by using .AddDays(30) in a loop.
So matter what month it is, it will calculate the proper date.

Eg Model:
public class Example {
  public string Name { get; set; }
  public DateTime Expires { get; set; }
}
Request data and populate the model
var examples = getExamples();
for each example in examples {
  example.Expires.AddDays(30);
}

If your not using models, then you be able to figure this out somehow. You just need a DateTime Object and AddDays(30)
If it ain't broke don't fix it
Discover my world at jkirkerx.com

QuestionIn 3 tier architecture , filling textboxes with values from database table Pin
Member 1418527512-Apr-19 19:17
Member 1418527512-Apr-19 19:17 
AnswerRe: In 3 tier architecture , filling textboxes with values from database table Pin
User 418025415-Apr-19 7:49
User 418025415-Apr-19 7:49 
GeneralRe: In 3 tier architecture , filling textboxes with values from database table Pin
Member 1418527515-Apr-19 8:46
Member 1418527515-Apr-19 8:46 
GeneralRe: In 3 tier architecture , filling textboxes with values from database table Pin
User 418025415-Apr-19 10:05
User 418025415-Apr-19 10:05 
GeneralRe: In 3 tier architecture , filling textboxes with values from database table Pin
Member 1418527515-Apr-19 16:46
Member 1418527515-Apr-19 16:46 
GeneralRe: In 3 tier architecture , filling textboxes with values from database table Pin
User 418025416-Apr-19 3:18
User 418025416-Apr-19 3:18 
GeneralRe: In 3 tier architecture , filling textboxes with values from database table Pin
Member 1418527516-Apr-19 3:51
Member 1418527516-Apr-19 3:51 
GeneralRe: In 3 tier architecture , filling textboxes with values from database table Pin
User 418025416-Apr-19 4:01
User 418025416-Apr-19 4:01 
GeneralRe: In 3 tier architecture , filling textboxes with values from database table Pin
Member 1418527516-Apr-19 4:17
Member 1418527516-Apr-19 4:17 
GeneralRe: In 3 tier architecture , filling textboxes with values from database table Pin
User 418025416-Apr-19 5:26
User 418025416-Apr-19 5:26 
GeneralRe: In 3 tier architecture , filling textboxes with values from database table Pin
Member 1418527516-Apr-19 6:04
Member 1418527516-Apr-19 6:04 
QuestionMake a title of the field goes over the field: asp MVC5 / Razor Pin
thabet idris12-Apr-19 0:15
thabet idris12-Apr-19 0:15 
AnswerRe: Make a title of the field goes over the field: asp MVC5 / Razor Pin
User 418025412-Apr-19 5:55
User 418025412-Apr-19 5:55 
AnswerRe: Make a title of the field goes over the field: asp MVC5 / Razor Pin
Richard Deeming15-Apr-19 8:28
mveRichard Deeming15-Apr-19 8:28 
QuestionDisplay a message when Radio Button is not selected Pin
Member 128239698-Apr-19 4:58
Member 128239698-Apr-19 4:58 
AnswerRe: Display a message when Radio Button is not selected Pin
Vincent Maverick Durano10-Apr-19 11:03
professionalVincent Maverick Durano10-Apr-19 11:03 
QuestionMembership section of VS2017 Web config Pin
Member 87616678-Apr-19 2:02
Member 87616678-Apr-19 2:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.