Click here to Skip to main content
15,892,737 members
Home / Discussions / C#
   

C#

 
GeneralDatagrid to text (values only) Pin
jazzle22-Mar-04 10:42
jazzle22-Mar-04 10:42 
GeneralRe: Datagrid to text (values only) Pin
Nick Parker22-Mar-04 18:02
protectorNick Parker22-Mar-04 18:02 
GeneralRe: Datagrid to text (values only) Pin
jazzle22-Mar-04 21:37
jazzle22-Mar-04 21:37 
GeneralRe: Datagrid to text (values only) Pin
Heath Stewart23-Mar-04 4:24
protectorHeath Stewart23-Mar-04 4:24 
GeneralConverting strings to DateTime structs Pin
profoundwhispers22-Mar-04 10:38
profoundwhispers22-Mar-04 10:38 
GeneralRe: Converting strings to DateTime structs Pin
Edbert P22-Mar-04 12:19
Edbert P22-Mar-04 12:19 
GeneralRe: Converting strings to DateTime structs Pin
profoundwhispers22-Mar-04 12:39
profoundwhispers22-Mar-04 12:39 
GeneralRe: Converting strings to DateTime structs Pin
Edbert P22-Mar-04 13:18
Edbert P22-Mar-04 13:18 
I've checked that in your case you only need to add the year value to the string.
Here's what I would do:

string dateValue = "Mar-07 13:45";
string[] dateParts = dateValue.Split(' ');
dateValue = String.Concat(dateParts[0], "-", DateTime.Now.Year, " ", dateParts[1]);


You can use the final string as input for any DateTime functions.

Edbert P.
Sydney, Australia.
GeneralRe: Converting strings to DateTime structs Pin
Bryan White31-Mar-04 9:59
Bryan White31-Mar-04 9:59 
GeneralEvents in Datagrid Pin
Anonymous22-Mar-04 10:30
Anonymous22-Mar-04 10:30 
GeneralRe: Events in Datagrid Pin
Ruchi Gupta22-Mar-04 11:55
Ruchi Gupta22-Mar-04 11:55 
GeneralRe: Events in Datagrid Pin
Anonymous23-Mar-04 11:15
Anonymous23-Mar-04 11:15 
GeneralSocket Programming - How Do I Send and Receive a Class or Structure Pin
goodpilot22-Mar-04 10:25
goodpilot22-Mar-04 10:25 
GeneralRe: Socket Programming - How Do I Send and Receive a Class or Structure Pin
Corinna John22-Mar-04 19:48
Corinna John22-Mar-04 19:48 
GeneralRe: Socket Programming - How Do I Send and Receive a Class or Structure Pin
Heath Stewart23-Mar-04 3:18
protectorHeath Stewart23-Mar-04 3:18 
GeneralRe: Socket Programming - How Do I Send and Receive a Class or Structure Pin
goodpilot23-Mar-04 4:42
goodpilot23-Mar-04 4:42 
GeneralRe: Socket Programming - How Do I Send and Receive a Class or Structure Pin
Heath Stewart23-Mar-04 5:20
protectorHeath Stewart23-Mar-04 5:20 
GeneralRe: Socket Programming - How Do I Send and Receive a Class or Structure Pin
goodpilot23-Mar-04 5:28
goodpilot23-Mar-04 5:28 
GeneralRe: Socket Programming - How Do I Send and Receive a Class or Structure Pin
goodpilot24-Mar-04 3:56
goodpilot24-Mar-04 3:56 
GeneralRe: Socket Programming - How Do I Send and Receive a Class or Structure Pin
goodpilot24-Mar-04 3:59
goodpilot24-Mar-04 3:59 
GeneralRe: Socket Programming - How Do I Send and Receive a Class or Structure Pin
Heath Stewart24-Mar-04 4:13
protectorHeath Stewart24-Mar-04 4:13 
GeneralRe: Socket Programming - How Do I Send and Receive a Class or Structure Pin
goodpilot24-Mar-04 16:46
goodpilot24-Mar-04 16:46 
GeneralRe: Socket Programming - How Do I Send and Receive a Class or Structure Pin
Sascha Andres23-Mar-04 3:17
Sascha Andres23-Mar-04 3:17 
GeneralRe: Socket Programming - How Do I Send and Receive a Class or Structure Pin
Heath Stewart23-Mar-04 3:20
protectorHeath Stewart23-Mar-04 3:20 
GeneralRe: Socket Programming - How Do I Send and Receive a Class or Structure Pin
Sascha Andres23-Mar-04 3:34
Sascha Andres23-Mar-04 3:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.