Displaying proper date format depending on culture

后端 未结 8 1308
感情败类
感情败类 2021-01-06 06:40

I am using a control for a popup calendar date picker. This uses a javascript function, SetText, to set the textbox to the given date. I can\'t change anything in the cale

8条回答
  •  感情败类
    2021-01-06 06:52

    toLocaleDateString would be a better solution than toLocaleString for your problem as it doesn't include the time (as you only are requesting the date).

提交回复
热议问题