I'm trying to convert calendar dates to Chinese lunar dates in google sheets. But I have difficulties. It is easy to do in excel by using formula:
`=TEXT(A2; "[$-130000]dd.mm.yy")`
But it doesn't work in google sheets. So, how to convert calendar dates to Chinese lunar dates in google sheets?
try:
=TEXT((REGEXEXTRACT(IMPORTXML(
"http://en.nongli.info/convert/index.php?c=solar&year="&YEAR(A1)&"&month="&MONTH(A1)&"&date="&DAY(A1),
"//td[#colspan='2']"), "(.+\d+)")&" "&YEAR(A1))*1, "dd.mm.yy")
demo spreadsheet
Related
My Google Sheets is currently set to UK London GMT
I have some data that is needed in UK format and other data that is needed in US format within the same sheet.
I'm using date time as dd-mm-yyyy hh:mm:ss and have been trying to convert this to US yyyy-mm-dd hh:mm:ss
When formatting the UK date time to as text and using this formula
=ARRAYFORMULA(REGEXREPLACE(A2:A, "(\d{4})-(\d+)-(\d+)", "$3/$2/$1"))
It should be converting for me however is stays the same.
I have also tried simply copying and pasting in a new column with the intention of changing format from within formatting settings but when pasting it seems to randomly select different formats in some rows using / instead of - and in other rows returning a number instead of date time.
How can I get this to work correctly?
try:
=TEXT(A2, "e-m-d h:mm:ss")
I have a sheet that is receiving data from another application but the date format comes like this on the cell: 2021-04-09 12:57:51 -0300 and i need this date to be readable by google sheets and data studio as a date format, only with year, month, day. How can I make it using conditions?
I've tried many conditions but no one seems to work.
Use this formula
=ArrayFormula(IF ( A2:A="",,DATE(
REGEXEXTRACT(A2:A, "(.+?)-"),
REGEXEXTRACT(A2:A, "-(..?) "),
REGEXEXTRACT(A2:A, "-(.+?)-"))))
try:
=INDEX(SPLIT(A1:A10; " ");;1)
I have a drop-down list of dates I want users of a form to select from. I have tried mm/dd//yy, mm/dd/yyyy, yyyy-mm-dd, yyyy/mm/dd and MMM-DD-YYY, but the data that ends up in the Sheet is always 12/31/1969 (25568.6666666667 if I change the display format). What format can I use to get a date successfully imported?
The answer in this thread didn't work for me: What format is required to import a date into google spreadsheet
The format mm/dd/yyyy works; I had a problem in the naming of the columns of the spreadsheet which was the source of the problem.
I selected tomorrow's date (8/21/2014) from the data picker field of a Google Form submission, and the value "41872" is returned in the spreadsheet.
What format is this date format?
I need to convert this date format to the MM/dd/yyyy format using script, as formatting the Date column using the Format menu only updates the rows that are currently available...not the new rows that will be there when new form submissions come in.
How do I make this conversion?
I am not sure, but your issue seems to be very basic. Its about the cell formatting as like we do in Ms Excel.
For Google spreadsheet inorder to format a cell or a range,
1. Select the Range
2. On menu, Go To Format->Number->Date (and then select the required format)
Does this works?
I had the same confusion. All you need to do is just change the format from the menu Format->Number->Date & Time
RSS feed
http://www.tides.info/rss.xml?locid=13419
Pipe
http://pipes.yahoo.com/pipes/pipe.info?_id=7639d7857574ee6f8677d59da4dded83
Trying to put daily tide information on a site. The date format that the RSS feed uses is not recognized by pipes. I am wanting to convert the date from RFC822 to ISO 8601 or some other format that is usable. Im wanting to display the day's tides(i.e. Saturday) on Saturday. Presently it is displaying two days ahead of time.
Thanks