Link to home
Create AccountLog in
Avatar of Whing Dela Cruz
Whing Dela CruzFlag for Anguilla

asked on

Html date format

Hi Experts, how to achieve the date format like  MM/DD/YYYY in html? code below is not working. thank you!.

<script>
var sDate = "Friday, February 14, 1975"
sdate = Format(sDate,"MM/DD/YYYY")
</script>
ASKER CERTIFIED SOLUTION
Avatar of Leonidas Dosas
Leonidas Dosas
Flag of Greece image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of Whing Dela Cruz

ASKER

HI Leonidas, Thanks and its working but i didn't get the "slush" as I tried the result is 02 14 1975. I need the output to be like this, "02/14/1975" Thank you!
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
I made the correction Whing. Look again the code.Sorry!!!!Mea Culpa.
Hi Leonidas, Its now working perfectly! Thanks a lot sir.
Good appreciate it you fixed it finally, Enjoy codings
Thanks a lot Leonidas for the solution and Joan for the suggestion! God bless to both of you guys, more power!
Its my Pleasure being a part  of This matter/issue
It's our pleasure to see a beutifull developer takes part  to this post (rare case!!!!).