function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
salesforce intesalesforce inte 

"2007-10-29T10:38:36.000Z" how to convert this into datetime format for c#

"2007-10-29T10:38:36.000Z" how to convert this into datetime format for c#
 
amit@varstreet.com
SiddharthSiddharth

Hi Amit,

Try converting it like

string strDate = "2007-10-29T10:38:36.000Z";

DateTime dtime = Convert.ToDateTime(strDate).ToString("dd/MM/yyyy");

 

Regards

Siddharth

SiddharthSiddharth

Hi Amit,

 

Sorry ignore the previous one. Try converting it like

string strDate = "2007-10-29T10:38:36.000Z";

DateTime dtime = Convert.ToDateTime(strDate);

strDate = dtime.ToString("dd/MM/yyyy");

Regards

Siddharth

salesforce intesalesforce inte

THANKS WE GOT IT

thanks again for quick response

Amit Lohogaonkar

amit@varstreet.com

salesforce intesalesforce inte
We want to exctract date and time not string but when we convert to datetime in c# it gives diffrent time. How to exctract date and time info from "2007-10-29T10:38:36.000Z" in normal c# datetime format to send it to oracle database? Regards Amit Lohogaonkar amit@varstreet.com