CoreCli.DateTime
2.0.2
dotnet tool install --global CoreCli.DateTime --version 2.0.2
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
dotnet tool install --local CoreCli.DateTime --version 2.0.2
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=CoreCli.DateTime&version=2.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package CoreCli.DateTime --version 2.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
datetime
Format the current date and time with a .NET date/time format string.
Usage: datetime [options] [format]
Arguments:
format .NET date/time format string. Default: g (culture-specific short date and time)
Options:
-f, --format <format> Set a .NET date/time format string.
-c, --culture <culture>
Set a culture name, for example en-US or de-DE.
--utc Format Coordinated Universal Time instead of local time.
--examples Show usage examples.
-v, --version Show version information.
-?, -h, --help Show help and usage information.
Examples:
datetime --format "dd.MM.yyyy (HH:mm:ss)" --culture de-DE
datetime --format "G" --culture en-US --utc
datetime "MMMM dd, yyyy"
The us culture alias maps to en-US for compatibility. Date and time format strings follow the .NET DateTime formatting rules.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.