I have a wiki in persian. In my preferences (user preferences), I can change date format for persian. And, I can see that the date format is as follow:
This picture shows that the user date format is correct and in persian, which is correct.
But when I have signed out, The date format of site is not persian. It looks like this:
This picture shows that the default date format is not persian, which is not the case I want to be.
I want the default date format of the site be in persian, too.
It would be great if some one guide me how to change the default time zone and date format of the wiki site.
Wiki Site Address: wiki.aicd.ir
I have found the answer as follow:
Add the following code at the end of LocalSettings.php file to change the default date format to 'persian':
$wgDefaultUserOptions['date'] = 'persian';
Wiki Site to Check
Related
I have created a form to enter a new line of data to the end of an excel table. When I open the form, I have created VBA code to enter the current date in this format.
18/05/2021
However, I'd like to be able to have the current date appear in this format on the form.
18th May 2021
My present line of code looks like this.
Supplier_Form.DateofInvoice = Format(Date, ddmmmmyyyy)
Many thanks in advance for any help.
I have default parameter and this parameter shows me 7 days ago with the expression below:
=DateAdd("d",-7,CDate(Format(Today(), "MM/dd/yyyy")))
But my report just running without error while the customer using "MM/dd/yyyy" time format.
Is there a way to use this parameter ALSO with "dd/MM/yyyy" format?
I would like to set a parameter to show 7 days ago but ı would like to use this parameter with both time format.
Thanks
Don't use the Format. Just put =DateAdd("d",-7,Today()). It will automatically take the Format according to System's format.
Firstly, the format part of your expression is redundant and misleading - don't use it
=DateAdd("d",-7,Today())
Secondly, you don't have any choice of how SSRS displays it's datepickers. It shows american format only (M/d/Y)
A date is a value and values do not have a format. A date is displayed and has to be entered in a format that depends on the language settings of your browser. Using a date picker, you even don't have to care about the input format. So, just use an expression that calculates the desired value:
=Today.AddDays(-7)
I have a date in the database with this format "YY-mm-dd". On the template I want it in this format: dd.mm.YY
Usually it would work with $date.Format('d.m.Y')
But not in Silverstripe 4. It converts from 2018-05-08 to 8.0.2018. Only the year is correct. Was there a change. I didn't find anything in the Documentation
Date formats in SS4 were changed from PHP date formatting to CLDR date formatting (changelog link):
Changed Format() method to use CLDR format strings, rather than PHP format string. E.g. d/m/Y H:i:s (php format) should be replaced with to dd/MM/y HH:mm:ss (CLDR format).
You can use this to achieve what you want:
$Date.Format('dd.MM.y')
The guide mentioned in the previous answer regarding date formatting has moved. The new location for CLDR date formatting as used by Silverstripe 4 can be found here:
https://unicode-org.github.io/icu/userguide/format_parse/datetime/#date-field-symbol-table
I have a report that takes date range as input control. But when I enter the date in the input control, its format changes automatically and error message is displayed (screenshot attached).
What's going wrong here?
Its because of the date format you have given in the iReport which is mm/dd/yyyy and default date format of JasperReport server is yyyy-MM-dd.
You can change the date format of JasperReport server which is controlled by the Locale and therefore the locale bundles.
To change the date format edit jasperserver_config.properties which is under
\jasperreports-server-cp-5.5.0\apache-tomcat\webapps\jasperserver\WEB-INF\bundles
These are the date formats in jasperserver_config.properties file:-
date.format=dd-MM-yyyy
datetime.format=yyyy-MM-dd HH:mm
calendar.date.format=%d-%m-%Y
calendar.datetime.format=%Y-%m-%d %H:%M
I've been playing with MIT AppInventor and attempted to calculate a duration between two dates.
I take date values from two text fields. Clock.MakeInstant says it's only able to accept dates in MM/DD/YYYY format so I was careful to do that. Still, when I attempt to feed them into MakeInstant it always pops the same message about being able to only accept MM/DD/YYYY hh:mm:ss or MM/DD/YYYY or hh:mm. I printed entered text values before passing them to MakeInstant to confirm that they are not somehow corrupted and they are fine -- each just a date in MM/DD/YYYY format.
I have no idea what else to try. As far as I can tell I followed the instructions to the letter. Any examples on how to pass a date as text to Clock.MakeInstant?
see this screenshot source: https://groups.google.com/d/topic/app-inventor-shared-utilities-repository/3bA4wczU9pU/discussion
Taifun