CRM Configuration Migration - Date Format - dynamics-crm

When I use the CRM Configuration Migration tool to import configuration data into a CRM organisation it incorrectly decides that the dates in the data.xml import file are in mm/dd/yyyy format (US format) but they are in dd/mm/yyyy format and therefore it imports dates incorrectly or not at all e.g. a date of 01/02/2015 (1st Feb) in data.xml is imported into CRM as 02/01/2015 (2nd Jan), a date of 13/01/2015 (13th Jan) is not imported into CRM as it is an invalid date in US format.
The system locale, location, and formats are all set to United Kingdom on both the CRM server and the SQL Server. In CRM, in both the system settings and the user settings, formats are set to United Kingdom.
How does CRM Configuration Migration tool decide what format dates in the data.xml import file are in?

Related

CRM Portals date issue - date not rendering properly

I am having an issue while retrieving a date field from CRM using Fetchxml and displaying it using web template in CRM Portals.
Date is CRM:
10/10/2018 00:00:00 (TimeZone UTC+10:00)
CRM Portals (Adx studio portals) renders the below:
09/10/2018 02:00:00 PM
Can someone suggest how to handle this?
Regards,
Rizwan Aarif
Check out Behavior and format of the date and time field.
Specifically I think you will want to look at these elements:
Depending on what the field represents, you can choose one of the
following field behaviors for portal forms and grids:
User Local: The field values are displayed in the userā€™s local time
and formatted as per their current portal language/locale.
...
You can also override the default date/time format to be used on
portals by creating the following site settings:
DateTime/DateFormat: The date format used on the portal.
DateTime/TimeFormat: The time format used on the portal.
DateTime/DateTimeFormat: The format for full date and time used on the portal.
By default, the portal uses the standard date/time formats specified
by the website language settings.

Can't import Date dd/mm/yyyy in crm

I have some records that I need to import into the CRM.
The format of dates in CRM is dd/mm/yyyy; and the format in Excel file is dd/mm/yyyy.
after importing, records with dates like 01/01/2016 are imported but those with dates like 31/07/2016 are not and the CRM give me the folowing error:
The source data is not in the required format.
When I import from Excel Online, it work, but from a file it doesn't work and give the error.
Thanks in advance for you help.
Add the correct localization settings for the specific user that is importing.

CRM 2016 OnPremise set/edit ModifiedOn date

Is it supported to set/edit the attribute ModifiedOn date programmatically (plugin, customized workflow or webservice)?
No, this is not possible and not supported. Only the CreatedOn date can be overridden by writing to the overriddencreatedon attribute.
This is not possible in supported way but if you're using On-Premises you can use direct SQL updates to modify modifiedon field but of course it is not supported.

Custom Report in Dynamics CRM Online - Default Date Parameter

I am creating a custom report for Dynamics CRM in Business Intelligence Devlopment Studio.
I have a filter in my FETCHXML with a date 'on-or-after' and the value as a date parameter.
When I don't set a default value, this worked fine however is causing the same error as below when I try to return to it, I have my date picker and could run the report from there.
I want to set a default as 1 month ago, so I put the following default expression into the parameter:
=DateAdd("M",-1,Today())
But I get the following error:
The date-time format for 18/04/2012 00:00:00 is invalid, or value is outside the supported range.
I'm assuming the date-time format is invalid for the createdon field in Dynamics but I don't know how it should be presented in the default value.
MS Dynamics CRM 2011 uses SortableDateTiĀ­mePattern.
So, I guess need to have it in this format: yyyy'-'MM'-'dd'T'HH':'mm':'ss (2008-03-09T16:05:07).
At least, I use it like this creating SOAP requests from JS.

BIRT report timezone

We are using BIRT for reporting in our application. When we tested the reports on local end, it was working as expected. Then we deployed the application on test server where OS is ubuntu and we are using mysql as our database server. Now the timezone of both OS and mysql are set to IST. But when we generate the report, it shows date/time before 5:30 hours i.e. GMT time. Any suggestions please?
If the problem is that you are viewing the report in other timezone than the server, you can pass the paramenter __timezone to the viewer and the dates will render in that time zone.
bind the date/time to the data element and right click the element and go to properties and select the format data time .
then select your local as you want
You can use lable also and use <value-of format="yyyy-MM-dd">new Date()</value-of>
Or rigth click on your label/element and apply new style with your format of date time

Resources