Date format issues in Google sheet - google-sheets

Data coming my sheet through automation date coming like April 01, 2022 at 01:52PM
Now i have to convert it standard date time formats like ddmmyyy hhmmss etc how can do this without creating new column for same like any app script do automatic when new row update
Now i have to convert it standard date time formats like ddmmyyy hhmmss etc how can do this without creating new column for same like any app script do automatic when new row update

If you do a Find an Replace with "at" substituting it with "", it will automatically change to a date format. And then you can set your custom format as you wish.
Second row there is just A2+1 to show you now it became a value you can format!

Related

Convert written out date (DD.MMMM.YYYY at hh:mm apm) string into date value

Unfortunately, the Google-Sheets sync extension saves the timestamp as a string. (Example: February 6, 2022 at 11:40 pm). Is there any way of automatically converting this automatically to an actual date? I tried the usual date conversion formulas but they dont work. Maybe a work-around?
if a timestamp is in cell A2, try this:
=1*SUBSTITUTE(A2,"at","")
This just gets rid of the word "at" and then multiplying by 1 forces an attempt to convert it into a date value. Then you can just do a regular Format>Number>Date and Time on that cell and it should show how you'd want.
Suppose that your string-dates are in A2:A.
Place the following formula into the Row-2 cell of any other open column (e.g., B2):
=IF(A2:A="",,DATEVALUE(REGEXEXTRACT(A2:A,"^(.+),\s"))+REGEXEXTRACT(A2:A,"\d+:.+$"))

How do I pull the month from text strings in this Twilio format 2019-08-22 06:12:58 MDT?

I am using the Twilio log file to crunch some data and need to convert the Twilio format for dates into something that Google Sheets can recognize as a date so I can then extract what month the date is referring to. I think that first, the text string has to be converted to be a better format and then I can use one of Google Sheets functions to extra the month. Currently, this is the format in the log file:
"2019-08-22 06:12:58 MDT"
I used GoogleSheets TIMEVALUE and TEXT functions.
=TIMEVALUE(I2)
and
=text(I2,”mmmm”)
I get "Formula Parse Error"
The timezone stamp is messing up the Google formulas for you.
So you may want to try getting rid of that with something like this:
=text(index(split(I2," "),,1),"mmmm")
The split function breaks up the logged time stamp into 2019-08-22 | 06:12:58 | MDT across three columns.
And the index function then gets the just the first column - the date bit from there.
And then the text function gets the month name out of the date.
you can use:
=TEXT(LEFT(A1, 10), "mmmm")
and in array it would be:
=ARRAYFORMULA(TEXT(LEFT(A1:A, 10), "mmmm"))

How to format multiple Date type columns in dd/mm/yyyy using Google Sheets Api in Ruby?

I have multiple date type columns like "User Joining Date", "Birthdate", "Arrival Date" etc. These dates are already in dd/mm/yyyy format.
But the issue is gsheet interprets date like 02/01/2019 as 1st February 2019 but interprets 13/01/2019 as 13th January 2019 which causes formatting issue.
02/01/2019 is left aligned whereas 13/01/2019 is right aligned. Moreover, this also causes sorting issues.
I've tried changing the locale and language of the spreadsheet but nothing helped.
You can always deliver the date in the way Google Sheets expects, in your case mm/dd/yyyy.
You can transform a Time, Date or DateTime instances into any format you want by using #strftime. This outputs a string in the provided format. Have a look at http://www.strftime.net/ for the different options and a live demo.
Alternatively you can use the localize functionality of Ruby on Rails. This can be done by calling:
I18n.l your_time_variable, format: :default

Google Data Studio - datetime shows only date

I have a Google Sheet containing datetime and present it like this: 10/28/2018 1:00:00
In Google Data Studio, my column is set to Date (YYYYMMDD) but all I see in the table is the date without the time.
How could I show the date and the time together?
Can you just change the format of the data to
Date Hour (YYYYMMDDHH)
?

Showing dates in Year,Qtr format in Acumatica Generic Inquiries

In Acumatica Cloud ERP, How can I create a calculated column that shows a date field formatted as Year, Quarter. i.e. Dec 21, 2014 to show "2014, Q4"
Inside your Generic Inquiry, just add a field to your field list use the expression editor in the “Data Field” and put in something like below. In this example I am formatting the Invoice Date field (ARInvoice.DocDate), so replace this with the date field you want to format.
=CStr(Year([ARInvoice.DocDate]))+', Q'+
CStr(Switch( month([ARInvoice.DocDate])>0 and month([ARInvoice.DocDate])<4,1,
month([ARInvoice.DocDate]) >3 and month([ARInvoice.DocDate])<7,2 ,
month([ARInvoice.DocDate])>6 and month([ARInvoice.DocDate])<10,3,1=1,4))

Resources