Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can we remove timestamp from time type dimension and return value format as yyyy-mm-dd using MSSQL database. #9076

Open
Shailendar opened this issue Jan 8, 2025 · 1 comment
Assignees
Labels
question The issue is a question. Please use Stack Overflow for questions.

Comments

@Shailendar
Copy link

Can we remove timestamp from time type dimension and return value format as yyyy-mm-dd using MSSQL database.

I am using MSSQL for db connection and I have one column which is datetime data type. Now I want to get the column using Cuebjs and I am able to do that. I am using type as time in cubejs. Now my problem is I am always getting timestamp along with date. But I just want date only in yyyy-mm-dd format. Can we do this in MSSQL. I can see the solution for this for BigQuery and mongodb but not for MSSQL. Could you please let me know how to handle this.

Thanks,
Shailendar

@Shailendar Shailendar added the question The issue is a question. Please use Stack Overflow for questions. label Jan 8, 2025
@igorlukanin
Copy link
Member

Hi @Shailendar 👋

I am always getting timestamp along with date. But I just want date only in yyyy-mm-dd format

Which API do you use? How do you consume the data?

Anyhow, when using the REST API, you should be able to format the date as you need on the client side (example). When using the SQL API with a BI tool, you should be able to format the date on the BI side.

I hope this helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question The issue is a question. Please use Stack Overflow for questions.
Projects
None yet
Development

No branches or pull requests

2 participants