Patel Chintan wrote:Hi I am having one problem while converting date format.
I am getting date as "2010-01-27 06:43:34" string in XML. I need to store it into UTC format.
Forgive my slightly off topic answer, but I ran into date strings lacking a time zone indicator recently one too often: if possibly at all, make sure to get a time zone indicator into the XML. Otherwise it has at least 24 different interpretations, depending on which time zone it actually is. You may currently know from context, but tomorrow someone changes his/her mind and switches from UTC to localtime or vice versa.