Drupal 8 Thunder : how to display only date without time for articles? - date

I am using Drupal 8 Thunder with the newsplus lite theme and would like to display everywhere only date without time.
Many thanks in advance.

Configure a new date-time format using /admin/config/regional/date-time
Put m/d/Y as a value for this new format.
Then configure the display of your nodes types and set this format for your date field.

Related

Are there any components to format phone number in ionic ?

I have a phone number in this format +11234567890. I want to show this as +1-123-456-7890 or just 123-456-7890 in Angular5/Ionic. Are there any components available to format phone numbers in required format? Or is there any method to achieve this.
https://github.com/amarkes/br-masker-ionic-3 also, you can create a mask .

Freemarker - Converting 01-JAN -1960 to 01/01/1960

I am using free marker and I new to it. I have a text field that lists a date as 01-JAN-1960. I need it to read as 01/01/1960. These dates are just place holders, there are various dates that will need to be converted like this. Any suggestions?

Date Format - Change format of Month from String to Numeric Value

I would think this is relatively straight forward but cant find documentation on how to do it(or the correct syntax to use) and my messing around hasn't worked so far.
For Dates we have a custom format called Month /Day /Year. This pulls back a the date(as a date type) in date format as such:
"14 April 2003"
The code behind this is:
(DATEPART('year', [Close Date])*10000 + DATEPART('month', [Close Date])*100 + DATEPART('day', [Close Date]))
What I want to get back is the month is numeric format like:
"14.04.2003"
Is it simply changing the "month" part in the code to a different type? Has any one come across this?
Cheers
lampbob, I'd just use date formatting which will mean you will still be able to use all the date-fields flexibility that Tableau provides.
Select Custom format with the following input:
dd.mm.yyyy
See the screen below for more details:
This can be easily achieved using the 'Format' option in Tableau. Here are the steps to follow to format the date field as you have specified.
Add Date field to your Rows/Columns field on a Tableau worksheet.
Set the format of the Date to be DAY(Date).
Click on options for 'DAY(Date)' and go to 'Format...'
On the Format DAY(Date) panel, go to Scale -> Dates.
Select 'Custom' option and type in 'mm.dd.yyyy'. Now the date will be in the string format you need.
Screenshots:
String format for date,
Changing to 'DAY' and 'Format...'
If you are only concerned about how the date is presented, then leave the datatype as a date, and use a custom format string via the format pane to display it as desired.
Followed your advice and just had to change the date pill, in the column field, to a continuous value. Then right clicked -> format -> Scale -> custom. Then used the above suggested format setting. Thanks Petr, woodhead92.

Google sheets date format change

Google sheets default date format is 11/05/2014 I want it be like 12-Apr-2014
I already have done date format change but its not working.
Can anyone please tell me how do I change it?
Thanks
The formula would be
=TEXT(A1, "DD-MMM-YYYY")
This is considering that your date is in cell A1.

jquery datepicker date format with output of Zend_Locale

I'm trying to set the format for a jquery datepicker element with the date format returned by Zend_Locale::getTranslationList('date', $locale);
My problem is zend returns the string 'dd/MM/yyyy' for the date format but jquery expects only 2 characters for the year ie 'dd/mm/yy', so it enters the year twice 20112011
Is there some option that can be passed to either zend or jquery to make them work in the same manner? I've read through the docs and can't seem to find anything
Many thanks for your help in advance!
I have used jquery date picker in python-django framework when I give date format as dd/mm/yyyy format it returns 20112011 then i have corrected it to dd/mm/yy and it returned 2011 only. you can specify in your datepicker css class to specify the date format as dd/mm/yy.
Iam not sure if this is what you're looking for but:
// use german local, change it to our needs :-)
$locale = new Zend_Locale('de_DE');
$result = Zend_Locale::getTranslationList('date', $locale);
// returns dd.MM.yy (german!)
echo $result['short'];