Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>Autocomplete datestringsNew to Visual Studio Code? Get it now.
Autocomplete datestrings

Autocomplete datestrings

oshikiri

|
231 installs
| (0) | Free
Autocomplete recent dates on VS Code
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Autocomplete datestrings

Marketplace Status of test workflow Status of publish workflow

This extension provides completion for recent date strings, such as today, yesterday, and tomorrow, on VS Code.

Format1: YYYY-MM-DD Format2: MMMM D, YYYY

Features

  • Autocompletes recent dates, including the past and the future.
  • You can configure the range of dates to be suggested (e.g., from 30 days ago to 7 days from now).
  • You can customize the date format with any format available in day.js, such as YYYY-MM-DD or MMMM D, YYYY.

Configuration

You can configure this extension in your VS Code settings.json.

Setting Description Default
datestrings.maxDaysBefore Specifies how many days ago to include in the completion list. 27
datestrings.maxDaysAfter Specifies how many days after today to include in the completion list. 7
datestrings.dateFormat Specifies the date format. See the day.js documentation for available formats. "YYYY/MM/DD"

Installation

  1. Launch Visual Studio Code.
  2. Open the Extensions view by pressing Ctrl+Shift+X (Windows, Linux) or Cmd+Shift+X (macOS).
  3. Search for Autocomplete datestrings.
  4. Find the Autocomplete datestrings extension and click the Install button.

License

MIT

  • This extension is based on vscode-extension-sample/lsp-sample.
  • The icon was taken from ICOON MONO.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft