Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
brijeshvma
Partner - Creator
Partner - Creator

How to Show value in a Proper Timestamp Format

Hi all , I am fetching a data from big Query . everything in fine . but Timestamp format i am getting in not Perfect .

Kindly help me to achieve this. please find the attachment.

i Attached , Qlikview output image , Bigquery image , sample data in excel and qvw .

1 Solution

Accepted Solutions
swuehl
MVP
MVP

I think your date time field is given in epoch time / unix time after your INTEGER conversion.

Epoch Converter - Unix Timestamp Converter

Either correct the SQL statement to bring in the textual representation, or transform your integer to Qlik date time:

Re: How to convert Unix Time Stamp

View solution in original post

15 Replies
amit_saini
Master III
Master III

Hi,

Try setting from here:

Thanks

AS

sunny_talwar

In this file you are loading the data from the csv file, I think you need to fix this issue while laoding the data from Big Query. What is the script that you are using?

Colin-Albert

These posts should help you get the correct timestamp values.

Why don’t my dates work?

QlikView Date fields

sunny_talwar

Amit the date doesn't seem to be the correct date. Check the screenshot

amit_saini
Master III
Master III

Yes Sir

brijeshvma
Partner - Creator
Partner - Creator
Author

Hi Sunny,

Thanks for your reply .

I am using a QvSource connector to fetch data .

i am attaching Qvd as well for the same .

Can you what i need to do .

brijeshvma
Partner - Creator
Partner - Creator
Author

Hi,

I have a script in Date_add(date_time,330,"MINUTE") as date_time_IST in big query to create this Field. can you able to tell me what i can do so qlikview can understand the timestamp format

Peter_Cammaert
Partner - Champion III
Partner - Champion III

Can you tell us in what environment or which programming language these large timestamp values were created? QVSource extracts these values from somwhere. And digits are just digits. The cannot tell us anything about granularity or starting date.

Peter

brijeshvma
Partner - Creator
Partner - Creator
Author

i am extracting data from big query .

select date, Date_add(date_time,330,"MINUTE") as date_time_IST,datetime

from(

SELECT date,SEC_TO_TIMESTAMP(datetime/1000) as date_time ,datetime

FROM (

SELECT date,INTEGER(JSON_EXTRACT(hits.eventInfo.eventLabel,'$.time_stamp')) as datetime,