Closed ryno1234 closed 8 years ago
Placeholders accept format flags, the same as String.Format. I think ToShortDateString() is the same as the "d" standard format, eg, ToString("d") or {key:d} in mustache #.
On Aug 23, 2016 9:03 PM, "Ryan Griffith" notifications@github.com wrote:
I find myself needing this when referencing a Date object. I'd love to be able to get the result of ToShortDateString(). In order to use this for my intended purpose, I need to create a whole new custom object to represent all my values in the template, as opposed to using the objects I already have available.
Thoughts?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jehugaleahsa/mustache-sharp/issues/67, or mute the thread https://github.com/notifications/unsubscribe-auth/ABTgPiOrufdEsC6G0VbluskN_KJhZLc0ks5qi5hMgaJpZM4Jriit .
I overlooked this. Perfect, thank you!
I find myself needing this when referencing a Date object. I'd love to be able to get the result of ToShortDateString(). In order to use this for my intended purpose, I need to create a whole new custom object to represent all my values in the template, as opposed to using the objects I already have available.
Thoughts?