+ Start a Discussion
Tulasiram ChippalaTulasiram Chippala 

How to get date time value from a string

I have a string like below
OutBound 16-12-2018 14:05:07

how i can get that date time value into date time field
Syed Insha Jawaid 2Syed Insha Jawaid 2
Hi ram ch

If you are using this in JS then simply use the new Date(dateString) to get the result.
If you are using it in Apex Date.valueOf('2018-12-16 14:05:07)