Dear All,
In my work, I got a date value from a text file and it is in the form of "2002-04-01 10:00:00"(i.e., in the form of yyyy-mon-dd hh:mm:ss). I have to subtract some value from the day of the above field say one or two. If it is middle of the month it is acceptable. But if it is first day of any month, I have to change this field to previous month last date. How can I handle this? Can any body help me in this issue?
regards,
Indrajit.