I am using Date object of javascript to get Day and year. Now I want to localize it in Spanish. Any way where I can pass locale in javascript to display Spanish?
JavaScript does have toLocaeString(), but it is based on the user's browser language settings and you can not change that. So you would need to write code to do it.