how to convert time zone of a datetime in google sheets

Harsh kumar

I have a column, in which datetime in text format "2022-04-12 07:09:10 UTC". I want to change this into IST time zone and convert it into date format only

tomf

You'll need to extract the date and time then add on 5h30m. From there you can either wrap it with INT or format the column to show just the date. For the one below, I used INT, which will strip the time after it is converted.

=ARRAYFORMULA(
  IF(ISBLANK(A2:A),,
   REGEXREPLACE(A2:A,"UTC","")+
   TIME(5,30,0)))

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Convert long date/time zone string to datetime

How to convert Java Date object to Matlab datetime array with time zone

Convert DateTime from specific time zone to UTC using Nodatime?

Pandas convert datetime with a separate time zone column

how to convert time zone automatically

How to convert time without time zone to timestamp without time zone?

How to convert Time into decimal float in Google Sheets using Script?

Convert Time Zone formatted datetime to local date time

How to assume a DATETIME is in my local time zone, then convert to UTC

Convert local datetime (with time zone) to a Unix timestamp in Oracle

How to convert alphanumeric time to seconds in Google Sheets

How to convert an UTC datetime to a specified Time zone?

How to convert time with time zone to timestamp?

Javascript - Convert a datetime, knowing its time zone, to UTC

How to convert timezones in google sheets

How to convert PostgreSQL timestamp with time zone to DateTime?

how to convert Uk time to Mexico time zone

Query to convert datetime column to a different time zone

Convert string to datetime with time zone

How to convert Google API DateTime timestamp between Cloud and local time

How to convert AT TIME ZONE return value to actual datetime value in SQL Server 2016?

How can I convert time (time zone)

Create DateTime in specific time zone then convert to utc

How to set time zone to datetime now in Python?

How can I convert Zulu time zone string into specific datetime object?

How to Convert Duration to Time on google sheets?

C# convert string with time zone to datetime HH:mm (UTC)

Convert ISO8601 datetime to another datetime time zone

python convert datetime with time zone to date