Hi Murtafiah, Please try to rephrase your question, so a reader om this forum knows about the functional requirement. E.g. I have a date and based on a setting ... I would like to calculate another date. As example.... etc. Just substracting 394 days is not a solution. Also use more descriptive titles of your questions. Also consider using the correct tags. I assume your question is about development, not other. Now it looks like you want to calculate a date where you need to find a first day of a month and then substract a year. Hoe would you solve it with a day function? A year can have 365 or 366 days. A month has 31, 30, 29 or 28 days. What if the start date was e.g. 12-12-2015? So explain the requirement and then ask your question how you can solve it using x++ coding.
↧