iT邦幫忙

1

App inventor 2 減一天

請問一下使用App Inventor 2 要如何將特定的日期減一天,我的程式碼如下圖但一直出現錯誤代碼,請幫忙看一下 謝謝https://ithelp.ithome.com.tw/upload/images/20200330/20124489Xefi4KiM3p.pnghttps://ithelp.ithome.com.tw/upload/images/20200330/20124489xCBECoZ8GG.png

圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

2 個回答

1
echochio
iT邦高手 1 級 ‧ 2020-03-30 08:01:02

您日期是字串...上面寫 文字 "3/1/2020"
然後 那個字串減 1 ...
請問你叫它如何減?

0
Pyan
iT邦研究生 5 級 ‧ 2020-03-30 10:18:10

有點怪怪的
你最後要合併文字的用意在哪

k6870 iT邦新手 5 級 ‧ 2020-03-30 23:43:22 檢舉

只是放一個時間格式進去

我要發表回答

立即登入回答