Conversion from string to Date with ISO format
I try to convert date value which fetching from MySQL DB as string and try
to convert following format :
In MySQL (data in row with UTC format): 2013-08-23 14:10:25
In Node.js (fetched from MySQL): Fri Aug 23 2013 14:10:25 GMT+0200 (CEST)
Is there any way to assign time format as in MySQL (2013-08-23 14:10:25) ?
I think Node.js fetching from datetime column as a Datetime format ( as
expected ) . But is there any way to fetch datetime from Database as a
string ...
Example :
var timeFormat = xxxxxx;
Console.Log('Time format =',timeFormat);
//Output : 2013-08-23 14:10:25
No comments:
Post a Comment