$DateStringFormat

$DateStringFormat

gives the default format to use for date strings generated by DateString.

Details

  • $DateStringFormat can be set to any format specification supported by DateString.
  • A typical initial default setting is $DateStringFormat="DateTimeShort".

Examples

open allclose all

Basic Examples  (2)

Use long date format:

Specify your own format:

Generalizations & Extensions  (1)

Include a time zone:

Properties & Relations  (2)

Use $DateStringFormat to set the default format for date strings within DatePlus:

Date string formats match date patterns:

Wolfram Research (2007), $DateStringFormat, Wolfram Language function, https://reference.wolfram.com/language/ref/$DateStringFormat.html.

Text

Wolfram Research (2007), $DateStringFormat, Wolfram Language function, https://reference.wolfram.com/language/ref/$DateStringFormat.html.

BibTeX

@misc{reference.wolfram_2020_$datestringformat, author="Wolfram Research", title="{$DateStringFormat}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/$DateStringFormat.html}", note=[Accessed: 21-April-2021 ]}

BibLaTeX

@online{reference.wolfram_2020_$datestringformat, organization={Wolfram Research}, title={$DateStringFormat}, year={2007}, url={https://reference.wolfram.com/language/ref/$DateStringFormat.html}, note=[Accessed: 21-April-2021 ]}

CMS

Wolfram Language. 2007. "$DateStringFormat." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/$DateStringFormat.html.

APA

Wolfram Language. (2007). $DateStringFormat. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/$DateStringFormat.html