It is very difficult to guess what solution might be without information about the exception (as Mark Gravell asked about) and / or some code example.
In my experience, I had date / time problems due to cultural issues. You said you already did hard coding.
what about the actual culture in which the process is carried out? if this code is on the asp.net website, the culture is set based on the user's browser settings (passed in the request).
try doing this in your code to hardcode the current thread culture to see if this help helps as a way to debug this problem.
// Replace the culture with whatever you required. System.Threading.Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture("en-GB");
Tell me what happens when you try to do this. ** I hate entering answers when we don't have enough information. this is more a suggestion than an answer :)
source share