Sign in to follow this  
Followers 0
iamtheky

day/month arrays from datetimeformatinfo

1 post in this topic

#1 ·  Posted (edited)

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
1 person likes this

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

Share this post


Link to post
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
Sign in to follow this  
Followers 0