EricF Posted March 27, 2008 Share 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. Link to comment Share on other sites More sharing options...
everseeker Posted March 27, 2008 Share 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 Link to comment Share on other sites More sharing options...
Developers Jos Posted March 27, 2008 Developers Share 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. Link to comment Share on other sites More sharing options...
everseeker Posted March 27, 2008 Share Posted March 27, 2008 I would take the simple approach: StringMid(@YEAR & @MON & @MDAY, 3) that too.. Everseeker Link to comment Share on other sites More sharing options...
EricF Posted March 28, 2008 Author Share Posted March 28, 2008 Thanks Link to comment Share on other sites More sharing options...
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