Jump to content
Sign in to follow this  
FireLordZi

_NowDate()

Recommended Posts

FireLordZi

I'm about to use this function and I wanted to know if there was a way (besides changing my computer settings) to change the format the date comes out in. i.e: yyyymmdd

Thanks,

FireLord


While Alive() {
	 DrinkWine();
}
AutoIt Programmer

Share this post


Link to post
Share on other sites
Tomb

I'm about to use this function and I wanted to know if there was a way (besides changing my computer settings) to change the format the date comes out in. i.e: yyyymmdd

Thanks,

FireLord

i think the _DateTimeFormat function might be what your looking for :)

look it up in the helpfile

Share this post


Link to post
Share on other sites
FireLordZi

Never mind, just found the right function in the helpfile.

Edit: Just saw your post, and yes that could work but I'm going to use _NowCalcDate :) :)

Edited by FireLordZi

While Alive() {
	 DrinkWine();
}
AutoIt Programmer

Share this post


Link to post
Share on other sites
Achilles

Do mean like this?

#include<Date.au3>

Msgbox(0, '', _NowDateX())

Func _NowDateX()
    $temp =  _NowDate()
    $temp = StringSplit($temp, '/') 
    
    Return $temp[3] & '/' & $temp[1] & '/' & $temp[2]
    
EndFunc

My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]

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  

×