CSS class styling is independent of the language. In fact the language is just an HTTP header so it wouldn't have any impact on rendering unless your code does something with it.
You mentioned that your code behind is doing something but it is unclear exactly what. If your server code is responsible for determining whether to apply the CSS classes or not then it becomes a matter of checking the rendered HTML. If the classes are missing then your server side code has an issue (most likely with the date formatting). You should debug your server side code.
If the CSS classes are in the HTML but the browser isn't rendering them then use the Developer Tools (F12) in the browser. Select your element and confirm the browser sees the CSS. You can also see what rules are being applied for the CSS to confirm that it is actually rendering the correct styling for the class.