LCKB
DeleteCharacterChecker - DateTime.New - Printable Version

+- LCKB (https://lckb.dev/forum)
+-- Forum: ** OLD LCKB DATABASE ** (https://lckb.dev/forum/forumdisplay.php?fid=109)
+--- Forum: Off-Topic (The Outer World) (https://lckb.dev/forum/forumdisplay.php?fid=198)
+---- Forum: General Discussion (https://lckb.dev/forum/forumdisplay.php?fid=147)
+---- Thread: DeleteCharacterChecker - DateTime.New (/showthread.php?tid=680)



- yujin - 02-19-2012


I want to suggest to change in Data.cs - Method DeleteCharacterChecker and UpdateCharList to use:

DateTime Deltime = DateTime.Parse(val);

instead of all that ToInt32 converting and back to datetime.

Im not sure about your mysql version, but mine uses / instead of . between day,month,year. As result .Parse method fix this problem.

 

I didnt check all the source for other places where this function is used.

 

Regards, Yujin.