Created
February 25, 2025 02:15
-
-
Save UskeS/743c0062466a8be58f7b28bb408d873e to your computer and use it in GitHub Desktop.
[JXA] Insert the date.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function run(input, parameters) { | |
| const today = new Date(); | |
| const delimiter = "."; //日付の区切り文字 | |
| const y = today.getFullYear()-2000; | |
| const m = ("0"+(today.getMonth()+1)).slice(-2); | |
| const d = ("0"+today.getDate()).slice(-2); | |
| const output = `${[y,m,d].join(delimiter)}_`; | |
| return output; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment