Perhaps, this way?
int i = DateString.LastIndexOf(":");
string SecRemovedStr = DateString.Remove (i, 3); // Assuming seconds always
in two digits.
"Karunakararao" <ka************@i-vantage.com> wrote in message
news:OE**************@TK2MSFTNGP14.phx.gbl...
Here Dates we are populating based on Regional optional settings that's
why we can not formating the Dates.
With out formating how can i Remove the Second's
Regards
Venu
"Shiva" <sh******@online.excite.com> wrote in message
news:O2**************@TK2MSFTNGP10.phx.gbl...
This is one way: String.Format ("{0:MM/dd/yyyy hh:mm}", <data column
reference>)
"Karunakararao" <ka************@i-vantage.com> wrote in message
news:eq**************@tk2msftngp13.phx.gbl...
Hi All
Date/Time: 9/29/2004 6:02:13 PM
This date and time Iam getting from Database,but I want to remove
seconds ":13"
Just I want to remove this Like ":13".
I want like this : 9/29/2004 6:02 PM
Please help me.
Regards
Venu