Jump to content
Sign in to follow this  
Ontosy

Conversion date

Recommended Posts

Ontosy

Do it exist a function tath convert:

"Thu, 10 May 2007 21:28:05 GMT"

to

10/05/2007 21:28:05

?

ty

Share this post


Link to post
Share on other sites
Paulie

Not a single function, but yes, it is possible.

Share this post


Link to post
Share on other sites
poisonkiller

Func Convert($date)
    $date = StringTrimLeft($date, 5)
    $date = StringTrimRight($date, 4)
    $date = StringReplace($date, " May ", "/03/")
    Return $date
EndFunc

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  

×