Currently I have a date in my clients data table and it is stored as a varchar.
Im am using MVC3 with Razorviews.
how can I format this date when it is by default a string to render as D/M/Y?
Currently it renders the same as it’s stored in the db: YY/MM/DD
Or for that matter, how can I format any string to display any way I wish.
For example, is there a way to change a string in the database that is a string: Product # 1
and in my view I can have it render as “Coffee Cup”.?
As for rendering a string of
"Product # 1"to"Coffee Cup", you will surely have to do some form of string mapping, as there is no correlation between those two strings.