Jump to content
Sign in to follow this  
atomman

Date/time/timezone formating

Recommended Posts

atomman

i need to convert the PC day, date, month, year, time and timezone into this format, exactly (case sensitive too):

Thu, 17 Jan 2008 02:00:00 EST

EDIT:

should've been more specific -- the only part i'm having a problem with is how to convert the day number to text, and same with month and timezone. the rest is cake. there's a lot of 'date' functions and i don't know where to start.

Edited by atomman

Share this post


Link to post
Share on other sites
covaks

#include <Date.au3>

msgbox(1,"",_DateDayOfWeek( @WDAY, 1 ) & ", " & @MDAY & " " & _DateToMonth(@Mon,1) & " " & @YEAR & " " & @HOUR & ":" & @MIN & ":" & @SEC & " " & "EST")

I don't know about the timezone. Maybe this will help though: Click me

Edited by covaks

Share this post


Link to post
Share on other sites
atomman

EDIT:

whoops - spoke too fast.

i think i might have the zone figured out.

thanks!

Edited by atomman

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  

×