I would like to use date in the following format: yyyyMM.dd.HHmm
. i.e. 202008.15.1742
This is the Bash file:
#!/usr/bin/env bash
VERSION_CODE=$((($(date +%s%N)/1000000))
plutil -replace CFBundleVersion -string "$VERSION_CODE"
How do I set VERSION_CODE
such that the current time appears in this format: yyyyMM.dd.HHmm
?