【问题标题】:How to convert dates pulled from IMPORTXML to actual dates如何将从 IMPORTXML 中提取的日期转换为实际日期
【发布时间】:2019-11-01 00:22:31
【问题描述】:

我正在从 https://weather.interia.com/long-term-forecast-chicago,cId,49700

日期如下:

1.11
2.11
3.11
4.11
5.11
6.11
7.11
8.11
9.11
10.11
11.11
12.11
13.11
14.11
15.11
16.11
17.11
18.11

如何将这些转换为实际日期? TO_DATE 没用。感谢您的帮助。

【问题讨论】:

    标签: date google-sheets google-sheets-formula array-formulas google-sheets-importxml


    【解决方案1】:

    尝试:

    =ARRAYFORMULA(DATE(YEAR(TODAY()), INDEX(SPLIT(IMPORTXML(
     "https://weather.interia.com/long-term-forecast-chicago,cId,49700", 
     "//span[@class='date']"), "."),,2), INDEX(SPLIT(IMPORTXML(
     "https://weather.interia.com/long-term-forecast-chicago,cId,49700", 
     "//span[@class='date']"), "."),,1)))
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-02-02
      • 2021-09-10
      • 1970-01-01
      相关资源
      最近更新 更多