I want to format a string before assigning it to a label's text property in jquery. I want something as follows (code is in C#),
string.Format("{0:MM/dd/yyyy}", m.hire_dt);
I am trying to format a date and other strings too. How could i achieve that?