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
import { defineComponent, ref, onMounted } from 'vue'; | |
import moment from 'moment'; | |
import { getAdjustedDate } from './path/to/your/helper/file/helpers.ts'; // Make sure the path is correct | |
export default defineComponent({ | |
name: 'MyComponent', | |
setup() { | |
const dateToday = ref(moment().format('YYYY-MM-DD')); | |
const tenDaysLater = ref(''); | |
const twoMonthsEarlier = ref(''); |
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 Write-Date { | |
$date = Get-Date -Format "dddd MM/dd/yyyy HH:mm" | |
Write-Host "$date " -BackgroundColor "black" -ForegroundColor "yellow" | |
} | |
# Print current version of node.js | |
function Write-NodeVer { | |
# This try gracefully handles when node isn't available | |
try { | |
$iconNode = "" # icon node |