datetime object problem
-
Hi, I have an date time object in which I m storing date like 12/12/2008 06:00 AM Now I m trying to get only the time part I mean 06:00 AM. each time I tried I m getting 12:00 AM. Can any one help?? Regards
Vijay V. Yash Softech
-
Hi, I have an date time object in which I m storing date like 12/12/2008 06:00 AM Now I m trying to get only the time part I mean 06:00 AM. each time I tried I m getting 12:00 AM. Can any one help?? Regards
Vijay V. Yash Softech
-
Hi, I have an date time object in which I m storing date like 12/12/2008 06:00 AM Now I m trying to get only the time part I mean 06:00 AM. each time I tried I m getting 12:00 AM. Can any one help?? Regards
Vijay V. Yash Softech
VijayVishwakarma wrote:
I have an date time object in which I m storing date like 12/12/2008 06:00 AM Now I m trying to get only the time part I mean 06:00 AM. each time I tried I m getting 12:00 AM.
Then you probably don't manage to parse the string correctly into a DateTime Value. How do you parse the string?
Despite everything, the person most likely to be fooling you next is yourself.
-
VijayVishwakarma wrote:
I have an date time object in which I m storing date like 12/12/2008 06:00 AM Now I m trying to get only the time part I mean 06:00 AM. each time I tried I m getting 12:00 AM.
Then you probably don't manage to parse the string correctly into a DateTime Value. How do you parse the string?
Despite everything, the person most likely to be fooling you next is yourself.
Its an datetime object returned from database.
Vijay V. Yash Softech
-
Hi, I have an date time object in which I m storing date like 12/12/2008 06:00 AM Now I m trying to get only the time part I mean 06:00 AM. each time I tried I m getting 12:00 AM. Can any one help?? Regards
Vijay V. Yash Softech
VijayVishwakarma wrote:
Now I m trying to get only the time part I mean 06:00 AM. each time I tried I m getting 12:00 AM.
Just Put your code over here !!!
cheers, Abhijit
-
VijayVishwakarma wrote:
Now I m trying to get only the time part I mean 06:00 AM. each time I tried I m getting 12:00 AM.
Just Put your code over here !!!
cheers, Abhijit
Problem solved.Thanks
Vijay V. Yash Softech
-
Its an datetime object returned from database.
Vijay V. Yash Softech
Ok. Do you store it as a datetime or a varcahr in the database? Do you convert the vale to a string when you get it from the database? Have you verified that the value is stored correctly in the database?
Despite everything, the person most likely to be fooling you next is yourself.
-
Ok. Do you store it as a datetime or a varcahr in the database? Do you convert the vale to a string when you get it from the database? Have you verified that the value is stored correctly in the database?
Despite everything, the person most likely to be fooling you next is yourself.
Hi thanks I got this problem solved.
Vijay V. Yash Softech