Google sheets date format change - date

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.

Related

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.

Display thousound with point in Google chart API

is there a way to display a thousand number in the format 1.200,55 instead of 1,200.55?
Thanks in advance for any help.
There is a section in the documentation about numberformats. What you'd need to set are decimalSymbol and groupingSymbol.
var formatter = new google.visualization.NumberFormat(
{decimalSymbol: ',', groupingSymbol: '.'});
Found another way in order to customize text for a country or language, affecting the formatting of values such as currencies, dates, and numbers.
https://developers.google.com/chart/interactive/docs/basic_load_libs#loadwithlocale

Google Sheets converting dates to numbers

I've run into a problem and haven't been able to find a solution for this via Google.
Using Google Sheets, I have a series of dates in the DD/MM/YYYY format in a column, and I'm filtering them based on info in another column with this formula in column G:
=ARRAYFORMULA(FILTER(D:D, B:B=B2))
where the dates are in column D. For example, 5/20/2013.
This works fine, but next, I want to add a string to the front of the dates like so:
=ARRAYFORMULA("End: "&FILTER(D:D, B:B=B2))
The dates are converting into numbers. So 5/20/2013 becomes End: 41414 instead of End: 5/20/2013, which is what I need.
Further, this happens whenever I try to reference a cell with a date in it in any formula. I have another column that puts together some values from other columns like this:
=IF(B:B=B2,ARRAYFORMULA(F2&" "&E2),"")
I want to add the date to that, like so:
=IF(B:B=B2,ARRAYFORMULA(F2&" "&E2&" "&G2),"")
The result I'm getting is the same, where I should see 5/20/2013 I'm instead getting 41414.
Can anyone tell me what's going on and how I can prevent it from converting my dates to numbers like that? Thanks!
In addition to Chris' answer: just converting to text should also work:
=ARRAYFORMULA("End: "&FILTER(to_text(D:D), B:B=B2))
You can format the formula output using TEXT, for example:
=ARRAYFORMULA("End: "&FILTER(TEXT(D:D,"mm/dd/yyyy"), B:B=B2))
=IF(B:B=B2,ARRAYFORMULA(F2&" "&E2&" "&TEXT(G2,"mm/dd/yyyy")),"")

SmartGWT - Display date in yyyy/MM/dd format

I want to have the possibility to display a date with the possibility to enter the date manually.
For this I've uset the attribute useTextField set to true like:
setAttribute("useTextField", true);
Now I want the format of date to be yyyy/MM/dd.
I've tryed with
setAttribute("displayFormat ", "TOJAPANSHORTDATE");
setAttribute("inputFormat ", "YMD");
but nothing happen.
I need to use attributes.
What attribute should I use? And with what value?
Please, need help.
Thanks you a lot.
You can try
.setDisplayFormat(DateDisplayFormat.TOJAPANSHORTDATE);