Jump to content

Date/time/timezone formating

Recommended Posts

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


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
Link to post
Share on other sites

#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
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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...