Created
July 4, 2020 10:59
-
-
Save deepakshrma/544c8f9dcb3e4a748f96b6510e5f6a77 to your computer and use it in GitHub Desktop.
deno moment sample
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 moment from "https://cdn.pika.dev/moment@^2.26.0"; | |
export function greet(name: string) { | |
return `Hello, Mr./Ms. ${name}`; | |
} | |
export function formattedDate() { | |
const todayMoment = moment(new Date()); | |
const todayFormatted = todayMoment.format("MM/DD/YYYY hh:mm a"); | |
return todayFormatted; | |
} | |
formattedDate() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment