locked
Simple Question RRS feed

  • Question

  • User1610800555 posted

    hi i m using Resource file for localization everything cool

    I pick the date value and i format it then i set the HtmlTableCell InnerText value

    the date value shows in Thai format

    i don't want to show the date in thai language format

    how can i prevent this 

    Thursday, September 2, 2010 4:16 AM

All replies

  • User-25924017 posted

    hi i m using Resource file for localization everything cool

    I pick the date value and i format it then i set the HtmlTableCell InnerText value

    the date value shows in Thai format

    i don't want to show the date in thai language format

    how can i prevent this 

    Don't understand you question. You said 

    I pick the date value and i format it
     

    if you don't want that Thai format then either don't format it (depends on your culture setting) or format it with format you want other than Thai.

    If thats not what you mean, please explain the question.


    Thursday, September 2, 2010 6:33 AM
  • User1610800555 posted

    I format it mean

    Convert.ToDateTime(valuefromdatabase).toString("dd-MMM-yyyy")

    i assign it to TableCell InnerText

    when the Culture is Thai

    the page browser format it automatically to Thai date format

    how to prevent this 

    Thursday, September 2, 2010 7:06 AM
  • User-25924017 posted

    Thats not possible when you'r applying some other format string at some other place. I can not imagine this with Table cell has set date from code behind has changed to other format than you what you set.

    Can you post your code? Are you using any DataFormatString?


    Thursday, September 2, 2010 8:02 AM