dfr strftime for dataframe

Formats date based on string rule.

Signature

> dfr strftime (fmt)

Parameters

  • fmt: Format rule

Examples

Formats date

> let dt = ('2020-08-04T16:39:18+00:00' | into datetime -z 'UTC');
    let df = ([$dt $dt] | dfr into-df);
    $df | dfr strftime "%Y/%m/%d"
╭───┬────────────╮
│ # │     0      │
├───┼────────────┤
│ 02020/08/04 │
│ 12020/08/04 │
╰───┴────────────╯