Download wp-calypso/client/sites/deployments/utils/dates.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 144 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/sites/deployments/utils/dates.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/sites/deployments/utils/dates.ts
-
curl -L -o dates.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/sites/deployments/utils/dates.ts
144 Bytes
| export const formatDate = ( locale: string, date: Date ) => { | |
| return Intl.DateTimeFormat( locale, { dateStyle: 'medium' } ).format( date ); | |
| }; | |