k-Wave Toolbox |

# getDateString

Create a string of the current date and time

## Syntax

    date_string = getDateString()

## Description

`getDateString` returns a string of the current date and time using `datestr` but replacing the white space and : character with an en dash.

## Outputs

`date_string` | formatted string of the current date and time

## See Also

`clock`, `date`, `datestr`

© 2009, 2010, 2011 Bradley Treeby and Ben Cox.