Joomla article field date minimum limit - joomla

I am Building a Family site with Joomla 3.7.3 and are trying to add custom fields to the articles. I am e.g. adding the birthday of a Family member in a field. But, it seems like I cannot create a date before 1900-01-01. Do you know of a workaround for this and maybe why one would add this limit to a date field?
Note: I see that there is an option called: "minyear" in the documentation. It might solve the problem, but how do you use it?

Even though the datepicker popup only goes back to 1900, you can manually type in whatever date you want.
You can change the date format disabled by going to Language Overrides and changing the constant of DATE_FORMAT_LC4 to F d, Y or whatever format you want.
If you want to tinker with the datepicker functionality, I believe those files are in /media/system/js/

Related

Dynamics 365, Entity View, format date field to "Month Year"

I am working on an entity view that displays billing records with associated date. This date field needs to be displayed as "Month - Year". Unfortunately, I am not able to find a way to format this date field outside of modifying the entity and even then, I only have the option for date only or date and time.
I have noticed that I can select the field and click on Change Properties. There I have "Web Resource" and Function Name. I have tried creating a web resource with a function that returns some data. Set everything up, saved and published. This function is not even found in dev tools. Only examples that I have for it are dealing with using this method for icons:https://www.c-sharpcorner.com/article/view-customization-with-javascript-in-dynamics-365/
In another example the suggestion is to use calculated fields, but this would cause me to lose date sorting and filtering on the form.
That view-based JavaScript seems to be to choose an icon. I'm not sure it would allow you to reformat actual data in the view. And if you're looking for assistance with trying to do that, you'd probably get more help if you posted the code.
Besides the JavaScript approach, you might want to think about creating a separate text field to hold the "Month - Year" value. Then you could use a workflow, plugin, or JavaScript to populate it when the datetime field changes.
One of the free workflow tool packages (Jason Lattimer's, Aiden Kaskela's, or Andrew Butenko's) probably has the ability to parse the date so you can format the month and year, and store the string in the separate field. This would be a no-code option.
Alternatively, you could write a plugin to reformat the datetime values and register it on the RetrieveMultiple message of the entity.
I'd probably go with a separate field and an off-the-shelf workflow utility to populate it.
There are several ways:
1. Setting->Administration->System Setting->Format->Customize,
2. http://prntscr.com/ph42nc,
3. or use on load with js to change date format more on this subject here: How to change date format in JavaScript

Date translation using Free marker Syntax in Netsuite Advance PDF template

I have a dilemma, we are a multi subsidiary company with subsidiaries in different countries/jurisdictions. All of which requires specific language and formatting for invoices/credit memos depending on the subsidiary. Currently our global date format is mm/dd/yyyy and it is flowing correctly to the template, we want to show the Transaction and Due (${record.trandate} +${record.duedate})in DD-Mon-YYYY (01-Jan-20015) without changing the global date preference. AS per NS support if we change the date preference globally it may effect our existing forms and scripts.
Is there any Free Marker syntax that can translate the date format for those to fields from mm/dd/yyyy to DD-Mon-YY, any help is appreciated.
Sam Azad
Also by adding <#setting date_format="dd-MMM-yyyy"/> in the head section also does the trick.

disable drupal date validation

I have a date field (widget = select list) in a drupal 7 content type, And I want to be able to enter a date like 2012/2/31 without any validation error?
what can I do?
The problem is 2012/2/31 is not a date, it's just a text string that resembles the formatting of a real date.
If you don't want to use proper, valid dates, then you simply shouldn't be using a date field. I'd advise adding a text field instead and then using the Field validation module to define a pattern to test the input against. That way you can accept any kind of string that resembles a date, not just real dates.
You can use date module, it provides you a date picker widget and output will be same as 2012/2/31, either you have to use textfield widget.
Date Module

Joomla K2 - How to order items by Extra Field Date

Me and a colleague are developing a website using joomla, we have ditched the joomla article component and replaced it with K2.
A part of the site's content , is posting (using K2 items) upcoming Live Events, such as an upcoming music concert, containing info about that event, images etc.
We want to find out if its possible to order these items, by the Date of the Event, or in other words how to order these items by the Extra Field : Date, of the item. K2 core only let's us order these items by Date Published or Date Created which is not what we need.
If anyone knows an easy way to overcome this obstacle it will be deeply appreciated!
we have been working on exactly the same events issue. K2 does not allow this, but we found a way of doing this in k2. The solution is an override of the template, but just one line is added.
Our events section is here vida latina events , there is 1 extra field "date". We wanted to order by this field (this solution would work for any other extra field too).
Solution
Create a menu item linking to an empty article.
Create a module k2 contents that selects from your k2 category, that appears on your new empty page
For "Order by", select "Title alphabetical" - we use this as we are going to hack it - so it needs to be an order you will not use for any other module
Open the file modules/mod_k2_content/helper.php
on line 195 find the code
case 'alpha' :
$orderby = 'i.title DESC';
break;
and replace with:
case 'alpha' :
$orderby = 'i.extra_fields DESC';
break;
This will work if you only have one extra field. If you have more than one extra field, you will have to modify the solution, but I think you get the general idea.
Hope this helps
Jeyjoo
I'm working on a similar project-making an event calendar using K2. I had the same question. What I am going to do is - for an event that is on Sept 22 2012, I will set the creation date at Sept 22 2011 (a year before). Then I will set K2 to order by "creation date" and set creation date to be hidden. This seems like a perfect solution...the only problem would be a leap year date (February 29) BUT you could set creation date to Feb 28 of the year before, and use the hours and minutes to get correct order that one day. I hope this makes sense.

How to set global number format in Oracle Apex 3.2.1

I'm having trouble with the number formatting in Apex 3.2.1. NLS_TERRITORY is set to GERMANY, NLS_LANGUAGE to GERMAN. However, the default number formatting is wrong and I would like to fix/change it. I'm wondering why there is an application date format setting but no application number format setting. That would have been really helpful right now. So my question is: how can I set a new number format which will be applied everywhere in my application? Is it possible? If not, what would be the least painful way to to apply the new format mask. I'm mainly concerned with interactive reports. Additionally, if it were possible to change the default format mask for the territory in some configuration file, that would also be an option. Thanks for your input in advance.
Edit:
My problem with the default format is that numbers like 0.34 are being displayed as ",34", but the correct output would be "0,34".
Okay, purely the display then. I don't think there is an easy way to do this for all your fields, but specifying a format mask on those fields, by using for example FM999G999G990D000.
That would be annoying for a lot of fields across the application though, i agree. It is even more annoying when only by specifying a format mask, items are recognised as being number fields. Maybe making a plugin, which is identical to a number field, but with a default format mask may do the trick.
Or query the apex views to find items, then update them (though you will need access to the 'internal' tables of apex, the wwv_* things).
select application_name, page_id, page_name, item_name, display_as, display_as_code, format_mask from apex_application_page_items where page_id = 6
Which you could then transform into an update...
I've nothing else to offer, so far i've always specified the format mask during development...

Resources