Jump to content

day/month arrays from datetimeformatinfo


iamtheky
 Share

Recommended Posts

This might save you...literally seconds.   Sorry if this is widely known, im new to this exploring.

#include<array.au3>

$oDTinfo = ObjCreate("system.globalization.datetimeformatinfo")

$aShrtDayArray = $oDTinfo.AbbreviatedDayNames
$aShrtMonthArray = $oDTinfo.AbbreviatedMonthNames

$aFullDayArray = $oDTinfo.DayNames
$aFullMonthArray = $oDTinfo.MonthNames

_ArrayDisplay($aShrtDayArray , "short days")
_ArrayDisplay($aShrtMonthArray , "short months")
_ArrayDisplay($aFullDayArray , "long days")
_ArrayDisplay($aFullMonthArray, "long months")

 

Edited by boththose

,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...