Avatar of Whing Dela Cruz
Whing Dela Cruz
Flag 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>
HTMLJavaScript

Avatar of undefined
Last Comment
Leonidas Dosas

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Leonidas Dosas

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
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
Joan Lewis

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Leonidas Dosas

I made the correction Whing. Look again the code.Sorry!!!!Mea Culpa.
Whing Dela Cruz

ASKER
Hi Leonidas, Its now working perfectly! Thanks a lot sir.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
Joan Lewis

Good appreciate it you fixed it finally, Enjoy codings
Whing Dela Cruz

ASKER
Thanks a lot Leonidas for the solution and Joan for the suggestion! God bless to both of you guys, more power!
Joan Lewis

Its my Pleasure being a part  of This matter/issue
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Leonidas Dosas

It's our pleasure to see a beutifull developer takes part  to this post (rare case!!!!).