Skip to content

Modern Chrono DateTime MonthName

Paul Squires edited this page Oct 20, 2026 · 2 revisions

Home › Date and Time (Chrono) › Chrono Date and Time › DateTime.MonthName

DateTime.MonthName

Returns a month's name in the user's language, or its abbreviation.

Syntax

DateTime.MonthName( mo [, abbrev] )

Examples

#import "std/chrono"
using chrono

print DateTime.MonthName( 8 )           '' August, on an English system
print DateTime.MonthName( 8, true )     '' Aug -- abbreviated

'' The OS locale's name, in the user's language: the output varies by
'' machine, so it is for display, not for a file that is read back.

Library: Chrono Date and Time
Category: Date and Time (Chrono)
Documented under: The Members

Clone this wiki locally