M
Mark Rae
Hi,
I'm busy implementing a PayPal solution at the moment, part of which
involves adding the PayPal transaction information to SQL Server for
fulfillment, stock management etc. PayPal provides an internal mechanism for
this, but supplies the date and time of the transaction in the following
format:
18:30:30 Jan 1, 2000 PST
Easy enough, of course, to strip off the Pacific Standard Time identifier
and convert the resulting string into a DateTime variable with
DateTime.Parse.
However, I'm in the UK, so need to record this information in UK time.
Again, easy enough to take the resulting DateTime and apply .AddHours(8) to
it, but this may not always be 100% accurate due to Daylight Savings in the
US and/or British Summer Time in the UK.
Is there anything in the Framework (customer is still on v1.1) which will
handle this, or would I need to maintain some sort of date lookup table
indicating when the time changes in the US and the UK?
Any assistance gratefully received.
Mark
I'm busy implementing a PayPal solution at the moment, part of which
involves adding the PayPal transaction information to SQL Server for
fulfillment, stock management etc. PayPal provides an internal mechanism for
this, but supplies the date and time of the transaction in the following
format:
18:30:30 Jan 1, 2000 PST
Easy enough, of course, to strip off the Pacific Standard Time identifier
and convert the resulting string into a DateTime variable with
DateTime.Parse.
However, I'm in the UK, so need to record this information in UK time.
Again, easy enough to take the resulting DateTime and apply .AddHours(8) to
it, but this may not always be 100% accurate due to Daylight Savings in the
US and/or British Summer Time in the UK.
Is there anything in the Framework (customer is still on v1.1) which will
handle this, or would I need to maintain some sort of date lookup table
indicating when the time changes in the US and the UK?
Any assistance gratefully received.
Mark