Does anyone now a good way to type/determine the last 15th date(dd-MM-yyyy)
So if the current date is the 8th of may, the output is the 15th of april. And if the current date is the 28th of june, the output is the 15th of june.
get the current day and month now.Day and now.month if its is grater than 15 then check if condition if it is true construct the date as 15 june if it is less than then 15 of current month -1 i.e may
Fine to get the 15 th date of a month
we can go like this buddy (sorry for the previous comment) @ChrisPals
lets say you are giving input like this with a datetime variable
which will give us output like this in_datetime_date = 28
where in_datetime_date is a variable of type int32
out_value of type int32 out_value = in_datetime_date - 15
out_value = 28 - 15 out_value = 13
now final value we need is
out_final of type int32 out_final = in_datetime_date - (out_value)
out_final = 28 - 13 out_final = 15 (we got the date now)
so now we need to get as a date
like this with a assign activity in_datetime_string = in_datetime_string.ToString.Replace(in_datetime_date.ToString,out_final.ToString)