i have one texbox in form that user insert persian DateTime i want convert persian date to Datetime for Save in sql thanx for answers
+2
A:
There are a bunch of articles on CodeProject you might find useful:
Persian DateTime
Farsi Library - Working with Dates, Calendars, and DatePickers
Search CodeProject for "Persian" and I bet you'll find a lot of useful stuff.
Jay Riggs
2009-09-01 19:12:58
+4
A:
Use DateTime.Parse with a Persian CultureInfo:
var input = "8/30/2009 03:32";
var datetime = DateTime.Parse(input, CultureInfo.CreateSpecificCulture("fa-IR"));
dtb
2009-09-01 19:14:32
thanx but i convert from Persian DateTime to Date Timethat is Convert Datetime to Persian DateTime
Mary
2009-09-01 19:45:01