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

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -