Anoop S replied to rajani maski
09-Feb-10 02:49 AM
assume input as string and check the length of string and if its 7 the the write the code for that-eg 1985102,- add 102 ads using datetime.adddays(102) and string length 8(1985W155) the extract the string (0-3)-1985, st(5-6) -15, st7-5, then multiply 17* 7 + add days the use above method to add days, there will be some easier methods other than this, lets check method in DateTime.UtcNow. function