EricF Posted March 27, 2008 Posted March 27, 2008 Hello, I would like to use the yymmdd date format, but it seems that it's not possible to specify a specific date format. How to do this (uses 2 digits for the year) ? The short date format on my PC is dd/mm/yyyy and I don't want to change it.
everseeker Posted March 27, 2008 Posted March 27, 2008 (edited) Hello, I would like to use the yymmdd date format, but it seems that it's not possible to specify a specific date format. How to do this (uses 2 digits for the year) ? The short date format on my PC is dd/mm/yyyy and I don't want to change it. _Date_Time_SystemTimeToArray then display the array any way you like... or _DayValueToDate as shown in the help file... Dim $Y, $M, $D $sJulDate = _DayValueToDate ($sJulDate-14, $Y, $M, $D) MsgBox(4096, "", "14 days ago:" & $M & "/" & $D & "/" & $Y & " (" & $sJulDate & ")") you can trim $Y to 2 digits....... Edited March 27, 2008 by everseeker Everseeker
Developers Jos Posted March 27, 2008 Developers Posted March 27, 2008 I would take the simple approach: StringMid(@YEAR & @MON & @MDAY, 3) SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
everseeker Posted March 27, 2008 Posted March 27, 2008 I would take the simple approach: StringMid(@YEAR & @MON & @MDAY, 3) that too.. Everseeker
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now