Format Date in Form Designer
Is there a way to convert the current date format output? The output, for today's date for example, if "8/13/2012 12:00:00 AM" This is the "Short" date format.
1. Is there a way to format to the following ways: MM/DD/YYYY OR better yet YYYY-MM-DD ?
I can do this in a workflow, but I'd rather not take apart the whole string and rearrange it as needed, trap for single digits, add zeros, etc.
-
Hi Ryan,
Did you figure out how to handle dates? I have a form with a date picker set to Long. But forms only seem to output strings. Outputing to string changes the format, so not sure what the use of this is.
Just wondering if you have any tips.
Thanks!
0 -
This works to give something like April 08, 2013. Can modify as needed.
dateVariable.ToString("MMMM dd, yyyy", System.Globalization.CultureInfo.InvariantCulture)
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
2 Kommentare