Changing Date formats in Target Tables in informatica - database

In informatica i receive dates from flat files in the format of dd-mm-yyyy and dd/mm/yyyy i need to convert all date to one format i.e dd-mm-yyyy using any expression and push into target ,so no rows gets rejected.how to proceed with them?

If you are handling data as "date" data type, you should have no problems with respect to rejections.
About handling a particular date format string, you can look at the properties at the integration service level, there you can control the date format (default).

Related

Converting default format of created date yyyy-mm-dd to dd-mm-yyyy in salesforce case Object

There is a createdDate field in Datetime standard Salesforce format for case I want to change it to dd-mm-tyyyy format actually I am showing list of case in flow for that I have created an apex class now it is default format that is yyyy-mm-dd so I need to change it dd-mm-yyyy
Change the user’s locale to one that uses the desired date format. The Salesforce UI renders date time values in the time zone and locale format of the current user.
It’s generally not a good idea or a best practice to implement custom date rendering; there’s a wide variety of ways to get it wrong.

Cannot format datetime in SQL Server Reporting Services report builder

None of the previous questions/answers on this topic are working for me; I'm a bit baffled. I've inherited my first SQL Server Reporting Services Report Builder report and was given the seemingly simple task of changing what was a date to a datetime. As you can see below I've successfully modified the underlying query and am getting back datetime types but I cannot FORMAT them as such on the report.
Results of my query:
My first instinct was that simply changing the type of the column (FirstProcessorCompletedDate) from date to datetime would make cue the report tool in on displaying date and time, but no luck. So...
Previous experience with report building tools told me to take the existing reference to the field and replace it with a format statement for that field, kind of like this:
Unfortunately, whatever I add here is getting interpreted as LITERALS by the report builder upon execution. AND YES, I DID TRY AN "=" IN FRONT OF THE FORMAT STATEMENT. This is just one variation of what I've tried.
Clearly this is not the old SSRS-type report building I am used to. I've Googled the heck out of this and searched Stack Overflow but no joy on the answer. I've looked a little at Calculated Fields but this seems like overkill. I don't want to calculate something, just format it.
What am I missing?
Don't modify the underlying query, that was your first mistake. date(time) data types don't have a format, they are binary values and your presentation layer changes that to a readable format. Once you change the "format" of a date(time) data type in SQL Server it is no longer a date(time) datatype, it's a varchar, and Format does not work on a varchar. How would you format the varchar value 'Hello, my name is Jane.' to the style MM/dd/yyyy hh:mm tt? You can't, and the same applies to a string representing a date.
Return the value of your column as a datetime to SSRS (don't convert it), and then change the Format Property of your cell in SSRS (hit F4 when you have the cell selected and you'll open up the cell's property pane) and change the format to MM/dd/yyyy hh:mm tt.

Convert excel column from General to Date in SSIS

I have a nvarchar(50) column in SQL which is of format mm/dd/yyyy. I am trying to import this data in excel using SSIS. In ssis package, I am creating a column Date_1 with datatype Date in Execute SQL task (Since .xlsx file needs to be created dynamically) and in my data flow task I am converting Date_1 to date(DT_DATE). But after data migration when I check my file column Date_1 is of General data type and not Date. Can someone help me how to convert General column to Date
The drop down list you are showing in the Microsoft Excel interface is not related to the data type it is the Number Format property which is used to change the way the value is shown in Excel.
Available number formats
To change this property you need to use Microsoft.Interop.Excel library within a Script Task and change the Excel.Range.NumberFormat property. As example:
Range rg = (Excel.Range)xlWorksheet.Cells[1,1];
rg.EntireColumn.NumberFormat = "MM/dd/yyyy";
References
How to make correct date format when writing data to Excel
How to: Specify Number or Date Format for Cell Content

How to load specific date format into BigQuery

When loading a .csv file into BigQuery with dates with this format DD/MM/YY it doesn't work, if I specify the schema for the table and I select Date Format.
However, if I don't specify the schema and I choose Automatically detect it works and converts the date format into YYYY-MM-DD.
Is there any possibility of convert the date into the right format manually and specify the name for that field?
Thanks,
David
Unfortunatelly, there is no way to control date formatting from the load API. You can load data into STRING first, and then use Standard SQL's PARSE_DATE function to parse it using any custom format.

Drupal 7: How do I change the input format of a Date after the field was created?

I created a "Date" field and its format defaulted to MM/DD/YYYY (English). I changed the Date settings in "/admin/config/regional/date-time" to use DD/MM/YYYY and added another "Date" field, which uses that format. Now I have two fields with two different date formats and I have no clue how to set them both to DD/MM/YYYY.
Any idea ?
I believe your best practice would be:
converting your corresponding database tables
exporting these tables
deleting this field form your site
running cron
creating this field from scratch and setting it to use your new format
overwriting your corresponding tables with the converted (original) tables in DB
You need to convert your tables after you have saved them. You can not change them once you have them, only conversation works normally.

Resources