Quantcast
Channel: DevNet Questions
Viewing all articles
Browse latest Browse all 8832

ToShortDateString() Macro Method Formatting

$
0
0
Hi!I'm using the ToShortDateString() macro method on a DateTime value returned from the database. This returns the standard format of mm/dd/yyyy, which is appropriate for my culture.Our style guide requires the format to be mm.dd.yyyy (so periods instead of slashes).Is there a way to do this with the default ToShortDateString() or do I need to build a custom one?Ultimately, we actually want to end up with mm.dd in this instance, but in some cases throughout the site we will want the year.Thanks!-Eric

Viewing all articles
Browse latest Browse all 8832

Trending Articles