dfr as-date
for dataframe> dfr as-date {flags} (format)
--not-exact, -n
: the format string may be contained in the date (e.g. foo-2021-01-01-bar could match 2021-01-01)format
: formatting date stringinput | output |
---|---|
any | any |
Converts string to date
> ["2021-12-30""2021-12-31"] |dfr into-df|dfr as-datetime"%Y-%m-%d"
Format example: "%Y-%m-%d" => 2021-12-31 "%d-%m-%Y" => 31-12-2021 "%Y%m%d" => 2021319 (2021-03-19)
Tips: Dataframe commands were not shipped in the official binaries by default, you have to build it with --features=dataframe
flag
Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/dfr_as-date.html