Re: Timestamp to ISO 8601
- From: "David Shorthouse" <davidshorthouse@xxxxxxxxxxxx>
- Date: Thu, 9 Jun 2005 17:52:52 -0600
Worked like a charm! For those who might be interested, here's my built
field in a query:
Date Last Modified:
Format(DateAdd("h",7,CollectionData!TimeStamp),"yyyy-mm-dd\Thh:nn:ss\Z")
Where CollectionData!TimeStamp is my timestamp field in another table and 7
is the addition in hours to the timestamp to convert from MST to GMT.
Dave
--
______________________________
Remove "_SPAM" to reply directly.
"John Nurick" <j.mapSoN.nurick@xxxxxxxxxxxxxx> wrote in message
news:ba2ha19i74ttu4luosr8oh7t6jo300evj0@xxxxxxxxxx
> Hi Dave,
>
> If your code knows its timezone in terms of hours from Greenwich, I
> think that all you need to do is something like this air code:
>
> Dim dtZulu As DateTime
> Dim strZulu As String
>
> dtZulu = DateAdd("h", TimeZone, TimeStamp)
> strZulu = Format(dtZulu, "yyyy-mm-dd\Thh:mm:ss\Z")
>
> with a bit more fiddling if the timestamp is a string rather than a
> date/time value.
>
>
> On Thu, 9 Jun 2005 01:09:01 -0600, "David Shorthouse"
> <davidshorthouse@xxxxxxxxxxxx> wrote:
>
>>Hey folks,
>>
>> Anyone know how to convert a timestamp (e.g. 1/24/2005 12:42:14 PM) to
>>ISO 8601-compliant. Specifically, I am hoping to convert the default
>>general
>>date as above to 2005-01-24T19:42:14Z since my timestamps are in MST.
>>
>>Thanks for any ideas,
>>
>>Dave
>
> --
> John Nurick [Microsoft Access MVP]
>
> Please respond in the newgroup and not by email.
.
- References:
- Timestamp to ISO 8601
- From: David Shorthouse
- Re: Timestamp to ISO 8601
- From: John Nurick
- Timestamp to ISO 8601
- Prev by Date: Re: Timestamp to ISO 8601
- Next by Date: How to create access2003 mdb using VC dao?
- Previous by thread: Re: Timestamp to ISO 8601
- Next by thread: Ole-object to image
- Index(es):
Relevant Pages
|