LibreOffice date shift in PostgreSQL - postgresql

I'm managing small PostgreSQL database. Recently I created new date field in one of tables. I'm working on pgAdminIII and everything is fine, but one of the users just reported that while working on LibreOffice all dates are shifted by 10 days to the past.
I just installed LibreOffice to check it and they are shifted on my copy too but by 9 days.
This is simple date field without any default value or constraints. All dates are before year 1900 (1400-1500).
In pgAdmin and console psql client everything is fine.
What can cause such an issue? How to fix that?
EDIT:
Problem occurs in table view only. I can access correct date via Tools > SQL... menu while viewing table data or creating query produces invalid results. It may be format conversion error (from Y-M-D to D.M.Y).

Related

'Invalid Mounth' when Importing excel with date time into Oracle DB using SQL Developer

I'm trying to import data from excel files, using data import wizard, but i get issues with date type. My dates type in excel is 'DD/MM/YYYY'
I tried various solutions found on other threads but none of them worked for me:
I tried changing the datestamp in NLS (tools -> preferences -> NLS) from DD/MM/RR to MM/DD/RR, DD/MM/RRRR or DD/MM/YYYY, but i got fails in the check window.
I also tried to change dates format in my excel into 'MM/DD/YYYY'(without changing the NLS) it seemed to work, when i check i got all successfull until i clic end then i got errors: 'Invalid mounth for the line 1' and so on.
I have Sql devloper 3.2.20.10, dates type in my database is DATE.
I updated my sql developer to the latest version and now it works just fine.
I guess the data import wizard in older versions wasn't that good.

Date Format in Power BI Hierarchical Slicer

I have a Power BI file that connects to a data model via SSAS. The data model origin is a SQL Server view with some computed columns added in via SSAS.
One of the visualisations is a Hierarchical Slicer that shows dates. The field is not one of the computed SSAS columns. It displays in DD/MM/YYYY format but when I place the file on a Power BI Report Server the format is Americanised to MM/DD/YYYY. I want it to be DD/MM/YYYY.
The same field is used to populate a table visualisation but in there it remains DD/MM/YYYY. Just the slicer is affected.
This blog https://community.powerbi.com/t5/Desktop/date-format-in-slicer/td-p/215627 seemed to have the answer I needed but these settings were already applied and still the slicer shows MM/DD/YYYY.
Its not a problem when I open the pbix file locally; there, the slicer shows the dates as DD/MM/YYYY, its just when its on the server. The same problem persists in Test and Production and I have checked those settings and they are as the blog indicates. Other blogs identify this with the slicers but do not present a real solution as its not seen as a problem in those topics.
I've only spent a month working with Power BI so have no real experience to draw upon. I know that SQL Server defaults to American English when connecting to a database and I have changed that to British English but still the same problem. How do I get the slicer showing as DD/MM/YYYY as in my local copy?
Select the Date column and then go to the Modeling tab and change Format to whatever Date format you want.
OR
You can create a calculated column using the FORMAT method in DAX to convert date format as you want.
See reference here: https://msdn.microsoft.com/en-us/library/ee634398.aspx
Power BI is missing the formatting in their recent releases. However, the below solution works for me:
Create a Calculated Column ref. the original Date column and apply "Short Date" format for Date, example:
Transaction Date =
FORMAT(DATE(
YEAR([Transaction_Date]),
MONTH([Transaction_Date]),
DAY([Transaction_Date])
), "Short Date")

MS Access adds always current day in time defined postgres column

We are moving BackEnd tables from a large MS Access application to postgresql.
In one table we have a field ErZei defined in postgres as
time(0) without time zone DEFAULT ('now'::text)::time(0) without time zone
Inside this field only the time value is stored, the day value has his own field.
The linked table inside Access shows the current day in front of the time value. Using the 24-hour format for displaying time values in Access looks fine. But by entering the field, the current day appears automatically.
If I call the time field by SQL-Query SELECT * from ..., I get the same result: everytime the current day value in front of the time value.
Inside postgres everything works fine.
Also a test with a ODBC query tool shows only the time.
How could I configure MS Access to show only the time value without the day in case of postgres time columns?
I can't find an option in the Access globals.
We use
MS Access 2016
ODBC: PostgreSQL Unicode 10.00.00 PSQLODBC35W.DLL
13.10.2017
PostgreSQL 10.1 as backend on ubuntu

Having an issue with ascertaining the format of a date

I've been tasked with getting data from an existing database table and transferring it into another. Everything is fine except the date in the original table is in a format that I don't recognise. It looks suspiciously like a unix timestamp but when converting it it seems to be coming out as the year 2727 or something.
Here is an example of what's in the existing table: 1424786878240
The matching date for this on the front end of the site is 24th February 2015. I cannot seem to find any correlation between this and the number in the database - and since I have no access to the original site code I am unable to determine how it's being converted.
If anyone recognises this date format / structure I would appreciate some help.

Issues with importing data in date format from excel to oracle 10g?

hello I am trying to import date formatted data from excel to oarcle 10g databse using SQL developer, earlier I had no idea, but after revising various questions in stackoverflow I came to know that it can be worked using SQL developer,Here is the process, I tried to import using right click on the table in sql developer selecting the column names followed by DATE format to be mentioned for the columns that have date, but I am not succeeded. Atlast I verified whether all the columns have success in their status, I have success for all the columns but after finish the error is "The date should be between 1 and last day of the month, Can anyone let me now how to fix it please ?
sometimes it caused by the format from your excel file..make sure that your excel file has a right Date format. Like dd-mm-rr
You can try navicat software to import excel file into oracle