Jump to content

Convert timestamp


Tetiana Sverhun

Recommended Posts

You have to play with your string and some conversion functions. My solution assumes that the time shift can only be full hours...

 

First create a [DateTimeColumn]

ParseDateTime(left([Timestamps],19),"yyyy-MM-dd HH:mm:ss")Then create a [TimeShiftColumn] and consider your sign (+/-)

If(Mid([Timestamps],20,1)="+",Integer(Mid([Timestamps],21,2)),-Integer(Mid([Timestamps],21,2)))Finally calculate the result ([Final])

DateAdd("hour",-[TimeShift],[DateTimeColumn])

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...