How to change the format of DATE? 日付の形式の変え方

Please tell me how to change the format of DATE.
It was extracted from EXCEL.
ex) [12/28/0001 00:00:00] into [0001/12/28]

お世話になります。
日付の形式を変換したいのですがやり方を教えていただけないでしょうか。
EXCELから抽出したものなので(yyyy/MM/dd)に変える方法がわかっておらす困っています。
どうかお力添えいただけないでしょうか。

@Naru_SUZUKI
1.assign str_val= “[12/28/0001 00:00:00]”
2.assign str_val.Replace(“[”,“”).Replace(“]”,“”)
3.assign str_val=cdate(str_val).ToString(“yyyy/MM/dd”)

1 Like

Hi @Naru_SUZUKI
You can Change DateTime Format Using YourdateTimeVariable.ToString(“yyyy/MM/dd”) assign it to a string Variable.

1 Like

Hi
Thank you for teaching me how to way of it.
I have some question.
If you answer my questions,I will be grad.

1,Are “str_val” and “str_uu” variable?
2,What is the second line’s other formula?

こんにちは

やり方は色々あるかとおもいますが、最初に地域情報を変えると楽になります。詳細下記参照ください。

1 Like

@Naru_SUZUKI Yes, str_val is a string variable. I have modified the above,Please check .

1 Like

Hi
Thank you for teaching me how to way of it.
I tried the way that you said,I could change it!
Thank you!

こんにちは
Yoichiさんコメントありがとうございます。
そういったやり方もあるのですね。ありがとうございます。
是非やらせていただきます。

1 Like