Home Explore Blog CI



nushell

commands/docs/date_from-human.md
ac966b47f7ff9b58c4a631600f2b2ea0eef523731c474f4b0000000300000453
---
title: date from-human
categories: |
  date
version: 0.104.0
date: |
  Convert a human readable datetime string to a datetime.
usage: |
  Convert a human readable datetime string to a datetime.
editLink: false
contributors: false
---
<!-- This file is automatically generated. Please edit the command in https://github.com/nushell/nushell instead. -->

# `date from-human` for [date](/commands/categories/date.md)

<div class='command-title'>Convert a human readable datetime string to a datetime.</div>

## Signature

```> date from-human {flags} ```

## Flags

 -  `--list, -l`: Show human-readable datetime parsing examples


## Input/output types:

| input   | output   |
| ------- | -------- |
| nothing | table    |
| string  | datetime |
## Examples

Parsing human readable datetime
```nu
> 'Today at 18:30' | date from-human

```

Parsing human readable datetime
```nu
> 'Last Friday at 19:45' | date from-human

```

Parsing human readable datetime
```nu
> 'In 5 minutes and 30 seconds' | date from-human

```

PShow human-readable datetime parsing examples
```nu
> date from-human --list

```

Chunks
a202b8b9 (1st chunk of `commands/docs/date_from-human.md`)
Title: date from-human: Convert Human-Readable Datetime Strings
Summary
The `date from-human` command converts a human-readable datetime string (e.g., 'Today at 18:30', 'Last Friday at 19:45') into a datetime object. It also provides an option to display examples of human-readable datetime parsing using the `--list` or `-l` flag.