For my requirement, based on input date, two values are calculated in vb.net code.
- DateAdd(DateInterval.Day, -1, inputdate.Value.AddDays((inputdate.Value.Day - 1) * -1).AddMonths(1))
- inputdate.Value.AddDays((inputdate.Value.Day - 1) * -1).AddMonths(1)
I want to implement above same logic in Sybase ASE procedure. Could anyone help me on this. I need to have these 2 as functions , based on input date ,these two dates has to be calculated