User Profile
Collapse
-
this doesn't seem to work -
c# - return string concatenated with itself, without exceeding limit
Hi,
I have attempted to answer this question but where have I gone wrong?
Return the given string doubled (concatenated with itself) , it should be doubled as many times as possible without exceeding the length given by limit. The string should be doubled a minimum of once, regardless of limit.
Code:public static string DoubleString(string aString, int limit)
-
C# - convert 'days old' to date of birth
(C#)
Hi,
I need to convert how many 'days Old' someone is (e.g. 3 years old = 1,095 days old) to a 'date of birth' answer i.e. dd/MM/yyyy. I have tried many different ways how to do this, but to no avail (yet) - e.g. using a mathematical formula but it gets a bit complicated, especially when considering how to implement that into C# (for a beginner, at least).
What is in the box below is one of the many... -
-
How do I return how many days are in the CURRENT month?
(I'm a C# rookie) I want the same code to work, irrespective of what month we are in.
I know the code for a specific month (DateTime.DaysI nMonth(int year, int month)) but what I am looking for is the code for the days in the current month (i.e. that corresponds to the current date/time on my computer/in my time zone)
Regards
No activity results to display
Show More
Leave a comment: