Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 UK date format - help nedded.
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

blackinwhite
Average Member

Turkey
657 Posts

Posted - 09 November 2001 :  15:46:27  Show Profile
I have a date like this:

NewDate = Now + (2/24)

it is because my server date is different, I use that. But since we use UK date format I want to change it to UK date format.

can anyone knows how to do it?

____
"I am a legal alien"

blackinwhite
Average Member

Turkey
657 Posts

Posted - 10 November 2001 :  05:00:52  Show Profile
ok, I came this much:

MyDate = Now + (2/24)
NewDate = Day(myDate) & "/" & Month(myDate) & "/" & Year(myDate)

but it gives an output like:
10/11/2001

now how can I add the hours so I want it to be like:

10/11/2001 11:06:11 AM

____
"I am a legal alien"
Go to Top of Page

blackinwhite
Average Member

Turkey
657 Posts

Posted - 10 November 2001 :  09:55:19  Show Profile
that's the answer:

MyDate = Now + (2/24)
NewDate = Day(myDate) & "/" & Month(myDate) & "/" & Year(myDate) & " " & time()

____
"I am a legal alien"
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.64 seconds. Powered By: Snitz Forums 2000 Version 3.4.07