C# String to Time Type yyyy-MM-dd HH :mm:ss yyyy-MM-dd hh :mm:ss
Day of the month d. One-digit dates have no leading zeros. dd The day of the month. Single-digit dates have a leading zero. ddd Abbreviated name of the day of the week, as defined in AbbreviatedDayNames. dddd The full name of the day of the week, as defined in DayNames. M month number. Single-digit months without leading zeros. MM month number. Single-digit months have a leading zero. The abbreviated name of the MMM month, as defined in AbbreviatedMonthNames. MMMM The full name of the month, as defined in MonthNames. y does not contain the year of the epoch. Does not have leading zeros. yy The year that does not contain the epoch. with leading zeros. yyyy Four-digit year including the epoch. gg period or era. h 12 -hour hour. Single-digit hours without leading zeros. hh Hour in 12 -hour clock. Single-digit hours have leading zeros. H 24 -hour hour. Single-digit hours without leading zeros. HH 24 -hour hour. Single-digit hours have leading zeros. m minutes. Single-digit minutes without leading zeros. mm minutes. Single-digit minutes have a leading zero. s seconds. Single-digit seconds without leading zeros. ss seconds. Single-digit seconds have a leading zero. f seconds have one decimal precision. The rest of the numbers are truncated. If the time is 2013-05-20 14:02:30 yyyy - MM - dd HH : mm : ss ; if the format is yyyy-MM-dd hh:mm: ss then it is displayed as 2013-05-20 02:02:30
Oracle YYYY-MM-DD HH24:MI:SS
select to_date("2015-07-05 10:30:40","YYYY-MM-DD HH24:MI:SS") from dual ;