c# - How to remove mili seconds from '0' date formatting -
i trying convert datetime following format.
2015-05-30t12:00:00+05:30
when trying 'o' formatter getting out put in following format,
string plannedstarttime = starttime.tostring("o");
output:2015-06-12t16:54:47.3206929+05:30
i need remove mil seconds .
not getting formatters msdn
any other formatters?
you can use custom formatter:
string plannedstarttime = starttime.tostring("yyyy-mm-ddthh:mm:sszzz");
Comments
Post a Comment