I need to convert the system datetime to timestamp in script task SSIS.
input date format: 29/05/2010 2:36 AM
output format: 29-15-2010 14:36:00
thanks
prav
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The output doesn’t quite match the input (the month becomes 15, and it goes from AM to PM). I assume those are typos. It should be something like:
If it’s user input, you may want
TryParseExactinstead.