i having confusion figuring out why experiencing following:
if using jquery ajax "post" json data containing date mvc controller automapper maps date in format dd/mm/yyyy if use "get" instead automapper seems convert date in format mm/dd/yyyy.
does know why case? when check json payload , querystrings post , respectively both in same format. date using goes across "1/7/2013" in both cases.
regards, gary
are using json serializer post datetime.parse get? yield 2 different results.
user datetime.parseexact ensure consistent results. i.e.
datetime.parseexact(input, "dd/mm/yyyy hh:mm", null);
Comments
Post a Comment