Am I right?
-
I am storing date in a textbox as well as pre popualte. But it sometimes give InvalidCastException while converting to my required format when I port it into production server(Server has different Date Time format) So I fixed the culture to some fixed culture which uses dd/mm/yyyy format(du-AT) Now all fine it does not give any exception in either of the place, but I still wonder is that the right way!!!
-
I am storing date in a textbox as well as pre popualte. But it sometimes give InvalidCastException while converting to my required format when I port it into production server(Server has different Date Time format) So I fixed the culture to some fixed culture which uses dd/mm/yyyy format(du-AT) Now all fine it does not give any exception in either of the place, but I still wonder is that the right way!!!
-
I am storing date in a textbox as well as pre popualte. But it sometimes give InvalidCastException while converting to my required format when I port it into production server(Server has different Date Time format) So I fixed the culture to some fixed culture which uses dd/mm/yyyy format(du-AT) Now all fine it does not give any exception in either of the place, but I still wonder is that the right way!!!
You could also use a date chooser control instead of a regular text box. One option is: Excentrics World[^] But there are many others. daniero