SSRS DateTime Format - set to US not UK - sql-server-2008-r2

I currently have a reporting services report created in BIDS 2005 and the database is SQL Server 2008 R2. My first issue is when I'm in BIDS and go to preview to test the report it only processes with the date in us format mm/dd/yyyy however if I deploy the report to the report server and run it from there it is fine.
I have changed the report properties to language English(United Kingdom), is there anything else I can do to get my reports to preview in English date format dd/mm/yyyy when in BIDS/VS?
My second and final issue with this is that when I try to create a schedule for this report it also errors as I pass in 2 date parameters (datetime) in the standard SQL format of yyyy-mm-dd using the data driven option. This also runs only if these dates are in US format, any ideas/tips?
Cheers

Ok after a while I have finally found a solution to my data driven subscription (DDS) date issue. Apparently for DDS the settings within the server is used rather than the report settings so I checked the database settings by using SQL Server Management Studio and right clicking the database then selecting properties, I then checked the language settings and hey presto its set to English(United States) how I got around this was to convert my date into a format that was non language dependant -
SELECT convert(varchar, getdate(), 121) – yyyy-mm-dd hh:mm:ss.mmm
This worked and fixed my DDS :)

Related

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")

Crystal reports date functions and formula

I'm not even sure how to start writing this logic. I have help desk issues in a SQL database with a create date and a resolved date columns. I'm trying to display only the records in which their create date is 14 days or less than the resolved date. Right now the report prompts for the start date and end date. Now I want to modify it. How do I write this logic and in which section of the formula builder? I'm using CR 2011 Standard.

Tableau String to Date Time Format Issues

I am pulling in date information via MySQL and the date is in the string format of "MM/dd/YY hh:mm:ss"
Using the built in conversion to date isnt working; so I tried using DATEPARSE and also using DATE and manually parsing it. I have had no luck and I have no idea why I keep getting "null" as the answer or it is putting the month as year, day as month, and year as day.
See screenshots below for the different formulas I have used:
DATEPARSE
Original date format
DATE with manual parsing
This worked for me using your example original data
DATEPARSE('mm/dd/yy hh:mm:ss',[Time] )
I used tableau's documentation of custom date formats to find the right formula for the format.
If this doesn't solve the problem then it is most likely due to a Locale issue. The Dateparse function relies on the locale specified by your computer settings to interpret and then display the strings you want to convert and can affect whether a certain format can be specified. This means that if a certain format is not recognised it will return a null. This will often occur is the windows region and language format is changed to another language other than the original language the workbook was created it.
So check your locale and if required execute the following workaround (documented by tableau here):
Open Windows control panel > region and language > format
Click format dropdown and change to original language of workbook creation
click ok or apply and reopen tableau work book

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

bypass computer regional settings in rdlc reports

I have a problem displaying dates in rdlc reports using C#, the date came from sql server is DateTime type i.e 2013-06-25 02:30:00.000, but when displayed on report it formats according to local PC regional settings. I can't use CDate() to format it the way I want because it returns error, I tried to set Format property of the textBox to dd/MM/yyyy but nothing happened. It seems, it dealt with the date value as string.
How can I bypass the regional settings and let report viewer to deal with it as date not string?
I don't think your problem has anything to do with your regional settings, it sounds like the report doesn't understand that the date field is actually a date.
Make sure that the date field in the dataset is of type System.DateTime