Doubts about text formatting and css

Hi Everyone, I have few doubts about text formatting and css, please help me with the same...
1. Use of toHTML(), and text() function with example when using color formatting, if it returns only html or css text back, does'nt apply color formatting? How do I use it in real application? And if I want to put css in SAIL form, how can I do the same?
2. text(38353, "mmm/dd/yyyy") returns Jan/04/2140, how this text function is working given in documentation as an example?

OriginalPostID-187613

OriginalPostID-187613

  Discussion posts and replies are publicly visible