On Thursday, April 25, 2013 9:46:23 PM UTC+5:30, Tony wrote:
> Hello! myDate has the following format ex. 2013/04/22 03:34 I want to use this pattern var m = myDate.match(/^\d{4}-\d\d-\d\d (\d\d):(\d\d)$/), hour = +m[1], min = +m[2]; But before I can use this pattern I need to change the - to / because the pattern works for format like format ex. 2013-04-22 03:34 I have tried without luck. //Tony
take a new var type variable and split mydate variable and again append in desire format...