Datepicker also shows time
Resolved
Hello,
When bringing in a datetime from SQL, I'd like to use only the date portion of the datetime in a filter. However, it seems that the time portion is always shown.
I tried changing the formating of the filter, but that did not seem to have any effect. How do I fix this?
I see other posts where the datepicker is working correctly, like this one: https://community.yellowfinbi.com/topic/what-happened-to-the-7-1-filter-date-picker-calendar
Files:
Capture.PNG
Hi Peter,
Thanks for taking the time to join me on a call today. As a quick summary, it looks like this behavior is actually the behavior of the jTDS Driver for your SQL Server data source.
Our Development team has found that switching to the Microsoft 2005 Driver will fix this issue.
You can do this under 'Administration' > 'Admin Console' > 'Data Sources' > $NameofDataSource > 'Connection Settings' > 'Driver'.
Please give this a go and let me know if it resolves your CAST issue. I also recommend testing your content after this change to verify everything works as expected. I'll leave this open while you test this out and check back if I don't hear anything.
Thanks,
Ryan
Hi Peter,
Thanks for taking the time to join me on a call today. As a quick summary, it looks like this behavior is actually the behavior of the jTDS Driver for your SQL Server data source.
Our Development team has found that switching to the Microsoft 2005 Driver will fix this issue.
You can do this under 'Administration' > 'Admin Console' > 'Data Sources' > $NameofDataSource > 'Connection Settings' > 'Driver'.
Please give this a go and let me know if it resolves your CAST issue. I also recommend testing your content after this change to verify everything works as expected. I'll leave this open while you test this out and check back if I don't hear anything.
Thanks,
Ryan
Hi Peter,
Thanks for your email.
Can you please let me know the build you are using?
I have tested it on 7.4, 20180226, this issue has already been raised as a defect.
I will convert this question into ticket, and also in my video you will be able to see how to convert a timestamp field to date.
Please let me know if you have any questions.
Regards,
Mahesh
Hi Peter,
Thanks for your email.
Can you please let me know the build you are using?
I have tested it on 7.4, 20180226, this issue has already been raised as a defect.
I will convert this question into ticket, and also in my video you will be able to see how to convert a timestamp field to date.
Please let me know if you have any questions.
Regards,
Mahesh
Hello,
I am using 7.4 20180313
In your video, at time 1:16, you can see the issue in action, where although that filter is set as a date, the time does appear in the date picker.
So just to be clear, is that being considered a defect and it should be addressed in the future? We're currently looking to switch to 7.4 from 7.1 across all of our accounts, and this is really the only sticking point left. Otherwise really liking the UI in 7.4!
Hello,
I am using 7.4 20180313
In your video, at time 1:16, you can see the issue in action, where although that filter is set as a date, the time does appear in the date picker.
So just to be clear, is that being considered a defect and it should be addressed in the future? We're currently looking to switch to 7.4 from 7.1 across all of our accounts, and this is really the only sticking point left. Otherwise really liking the UI in 7.4!
Hi Peter,
Thanks for your reply.
I have double checked this issue and learnt that this is not actually an issue. I was using a formatter to change the format, but infact I should use the date converter and now it doesn't show me the time along with the date in the filter.
I have done a quick video and hope this helps.
Please let me know if you have any questions.
Hi Peter,
Thanks for your reply.
I have double checked this issue and learnt that this is not actually an issue. I was using a formatter to change the format, but infact I should use the date converter and now it doesn't show me the time along with the date in the filter.
I have done a quick video and hope this helps.
Please let me know if you have any questions.
Hi Peter,
Yes, I was editing a View and not a report.
Please let me know if you have any questions.
Regards,
Mahesh
Hi Peter,
Yes, I was editing a View and not a report.
Please let me know if you have any questions.
Regards,
Mahesh
Thanks Peter.
I am glad this issue is now resolved.
I will mark this ticket as completed.
Please let me know if you have any questions on this ticket.
Regards,
Mahesh
Thanks Peter.
I am glad this issue is now resolved.
I will mark this ticket as completed.
Please let me know if you have any questions on this ticket.
Regards,
Mahesh
Hello Mahesh,
Any thoughts?
Peter
Hello Mahesh,
Any thoughts?
Peter
Hi Peter,
Thanks for your reply. This ticket is in progress.
Can you please send me the SQL you have written to convert a DATETIME to DATE format while creating a View?
I will try the same and see if I can find a solution.
Let me know if you have any other questions.
Regards,
Mahesh
Hi Peter,
Thanks for your reply. This ticket is in progress.
Can you please send me the SQL you have written to convert a DATETIME to DATE format while creating a View?
I will try the same and see if I can find a solution.
Let me know if you have any other questions.
Regards,
Mahesh
Hi Peter,
I have done a quick test using a freehand SQL with the Cast function.
Please look at this quick video and let me know if this is different to what you are seeing on your side.
Let me know if you have any questions.
Regards,
Mahesh
Hi Peter,
I have done a quick test using a freehand SQL with the Cast function.
Please look at this quick video and let me know if this is different to what you are seeing on your side.
Let me know if you have any questions.
Regards,
Mahesh
Mahesh,
When i attempt to cast in the same way, we do not get the same result. I have attached a screenshot which shows the dialogue I get at 44 seconds into your video. you'll note that the Format is 'Text' instead of date.
Mahesh,
When i attempt to cast in the same way, we do not get the same result. I have attached a screenshot which shows the dialogue I get at 44 seconds into your video. you'll note that the Format is 'Text' instead of date.
Hi Peter,
Thanks for screenshot.
May I know the database you are using and the data type of the date field, is it a Date type or a Timestamp?
Can you change the format from 'Text' to 'Date' format?
I will need bit more screenshot starting from the view to the report how that field is transformed from timestamp to date.
Please let me know if you have any additional questions.
Regards,
Mahesh
Hi Peter,
Thanks for screenshot.
May I know the database you are using and the data type of the date field, is it a Date type or a Timestamp?
Can you change the format from 'Text' to 'Date' format?
I will need bit more screenshot starting from the view to the report how that field is transformed from timestamp to date.
Please let me know if you have any additional questions.
Regards,
Mahesh
Hi Peter,
Thanks for your reply.
Yes, we can arrange a quick screen share. As I am in Australia timezone, I am assigning this ticket to the US team. Our team member will be in contact with you.
Please let me know if you have any concerns.
Regards,
Mahesh
Hi Peter,
Thanks for your reply.
Yes, we can arrange a quick screen share. As I am in Australia timezone, I am assigning this ticket to the US team. Our team member will be in contact with you.
Please let me know if you have any concerns.
Regards,
Mahesh
I ended up making a video showing the issue. See attached.
I ended up making a video showing the issue. See attached.
Hi Peter,
I'll be taking this over since I'm in the North American office in Mountain Time zone.
I'd like to start by summarizing your current issue as I understand it: When performing a CAST to convert a datetime field to a date field, the result is being pulled in as a varchar in your Freehand SQL View.
I'm happy to attempt replicating this to raise as a Defect. Please advise the type and version of RDBMS you are creating this View upon, i.e. SQL Server 2014.
This will help to ensure I can properly replicate your issue.
Thanks,
Ryan
Hi Peter,
I'll be taking this over since I'm in the North American office in Mountain Time zone.
I'd like to start by summarizing your current issue as I understand it: When performing a CAST to convert a datetime field to a date field, the result is being pulled in as a varchar in your Freehand SQL View.
I'm happy to attempt replicating this to raise as a Defect. Please advise the type and version of RDBMS you are creating this View upon, i.e. SQL Server 2014.
This will help to ensure I can properly replicate your issue.
Thanks,
Ryan
Hi Peter,
Thanks for taking the time to join me on a call today. As a quick summary, it looks like this behavior is actually the behavior of the jTDS Driver for your SQL Server data source.
Our Development team has found that switching to the Microsoft 2005 Driver will fix this issue.
You can do this under 'Administration' > 'Admin Console' > 'Data Sources' > $NameofDataSource > 'Connection Settings' > 'Driver'.
Please give this a go and let me know if it resolves your CAST issue. I also recommend testing your content after this change to verify everything works as expected. I'll leave this open while you test this out and check back if I don't hear anything.
Thanks,
Ryan
Hi Peter,
Thanks for taking the time to join me on a call today. As a quick summary, it looks like this behavior is actually the behavior of the jTDS Driver for your SQL Server data source.
Our Development team has found that switching to the Microsoft 2005 Driver will fix this issue.
You can do this under 'Administration' > 'Admin Console' > 'Data Sources' > $NameofDataSource > 'Connection Settings' > 'Driver'.
Please give this a go and let me know if it resolves your CAST issue. I also recommend testing your content after this change to verify everything works as expected. I'll leave this open while you test this out and check back if I don't hear anything.
Thanks,
Ryan
Hi Ryan,
Yes, that did seem to resolve it. I will do further testing to ensure it works as expected for other aspects of the report.
Hi Ryan,
Yes, that did seem to resolve it. I will do further testing to ensure it works as expected for other aspects of the report.
Hi Peter,
I'm glad to hear it! I'll leave this open during your evaluation process. Looking forward to your results.
Thanks,
Ryan
Hi Peter,
I'm glad to hear it! I'll leave this open during your evaluation process. Looking forward to your results.
Thanks,
Ryan
Hi Peter,
I wanted to check in and see how it's all going.
Thanks,
Ryan
Hi Peter,
I wanted to check in and see how it's all going.
Thanks,
Ryan
Replies have been locked on this page!