java - short regex datetime split -


I am trying to split the following: 2010-07-30 10:10:50

< P> And I would like to end with them only:

2010

07

30>

usually just with date ,

P>

How can I remove the last part + space?

Thanks a lot!

ps, now i need it but in php then i need to implement it also in java

The answer that has been deleted now works like a magic, / [-] /

It has been run in PHP and probably will be in Java also.


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -